🐛 Fixed GUI showing items when it shouldn't

This commit is contained in:
oof2win2 authored and Cooldude2606 committed 2022-10-23 18:31:39 +01:00
1 parent 5d42fffa64
commit f3ce3eb80b
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