mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-16 00:24:52 +09:00
🐛 Fixed GUI showing items when it shouldn't
This commit is contained in:
1 parent
5d42fffa64
commit
f3ce3eb80b
2 files changed
+5
-1
No files matched your search
@@ -73,7 +73,8 @@ function Gui.update_top_flow(player)
|
||||
end
|
||||
|
||||
-- Set the visible state
|
||||
local allowed = type(authenticator) == 'function' and authenticator(player) or authenticator
|
||||
local allowed = authenticator
|
||||
if type(allowed) == 'function' then allowed = allowed(player) end
|
||||
element.visible = is_visible and allowed or false
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user