mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed boolean auth on topflow
This commit is contained in:
@@ -73,7 +73,8 @@ function Gui.update_top_flow(player)
|
||||
end
|
||||
|
||||
-- Set the visible state
|
||||
element.visible = is_visible and authenticator(player) or false
|
||||
local allowed = type(authenticator) == 'function' and authenticator(player) or authenticator
|
||||
element.visible = is_visible and allowed or false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user