mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -287,7 +287,13 @@ if settings.startup['PHI-CT'].value then
|
||||
end)
|
||||
|
||||
script.on_event(defines.events.on_player_created, function(e)
|
||||
gui.create(game.players[e.player_index])
|
||||
local player = game.players[e.player_index]
|
||||
|
||||
if player.gui.relative.inserter_config then
|
||||
player.gui.relative.inserter_config.destroy()
|
||||
end
|
||||
|
||||
gui.create(player)
|
||||
end)
|
||||
|
||||
script.on_event(defines.events.on_gui_opened, function(e)
|
||||
|
||||
Reference in New Issue
Block a user