🐛 Fixed GUI showing items when it shouldn't

This commit is contained in:
oof2win2
2021-08-14 14:06:13 +00:00
committed by Cooldude2606
parent 5d42fffa64
commit f3ce3eb80b
2 changed files with 5 additions and 1 deletions

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