Change global to storage in server ups (#10)

This commit is contained in:
2024-11-21 08:44:29 +09:00
committed by GitHub
parent b26ce578f2
commit 5a1965b309

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)