mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fixed boolean auth on topflow
This commit is contained in:
@@ -73,7 +73,8 @@ function Gui.update_top_flow(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Set the visible state
|
-- 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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user