This commit is contained in:
2025-06-05 20:30:01 +09:00
parent d69bd0bfe1
commit e05e9d00cf

View File

@@ -53,9 +53,11 @@ script.on_init(function()
event_handler = {}
}
if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '-') then
for _, player in pairs(game.players) do
inserter_gui_create(player)
end
end
end)
script.on_configuration_changed(function()
@@ -63,6 +65,7 @@ script.on_configuration_changed(function()
event_handler = {}
}
if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '-') then
for _, player in pairs(game.players) do
inserter_gui_create(player)
@@ -70,6 +73,7 @@ script.on_configuration_changed(function()
inserter_gui_update(player, player.opened.entity)
end
end
end
end)
local function event_reg(event_name, event_handler, event_filter)