This commit is contained in:
2026-07-03 15:11:09 +09:00
parent ed4f1054f2
commit 6b74e260ea
+3 -3
View File
@@ -38,7 +38,7 @@ local function gui_update(player, entity)
end end
script.on_init(function() script.on_init(function()
if settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then if (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].value) or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
for _, player in pairs(game.players) do for _, player in pairs(game.players) do
gui_create(player) gui_create(player)
end end
@@ -46,7 +46,7 @@ script.on_init(function()
end) end)
script.on_configuration_changed(function() script.on_configuration_changed(function()
if settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then if (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].value) or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
for _, player in pairs(game.players) do for _, player in pairs(game.players) do
gui_create(player) gui_create(player)
@@ -57,7 +57,7 @@ script.on_configuration_changed(function()
end end
end) end)
if settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then if (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].value) or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
script.on_event(defines.events.on_player_created, function(event) script.on_event(defines.events.on_player_created, function(event)
if not event.player_index or not game.players[event.player_index] then if not event.player_index or not game.players[event.player_index] then
return return