🐛 Fixed GUI showing items when it shouldn't

This commit is contained in:
oof2win2 committed 2021-08-14 14:06:13 +00:00
1 parent 798dfaf64e
commit 9f0b4cf825
2 files changed
+5 -1

No files matched your search

+2 -1
View File
@@ -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