Change global to storage in server ups (#10)

This commit is contained in:
phidias authored and GitHub committed 2024-11-20 23:44:29 +00:00
1 parent b26ce578f2
commit 5a1965b309
1 file changed
+1 -1
+1 -1
View File
@@ -35,7 +35,7 @@ UsesServerUps:on_load(function(player_name, visible)
local player = game.players[player_name]
local label = player.gui.screen[server_ups.name]
--- @diagnostic disable-next-line undefined-field
if not External.valid() or not global.ext.var.server_ups then visible = false end
if not External.valid() or not storage.ext.var.server_ups then visible = false end
label.visible = visible
end)