mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -224,7 +224,11 @@ if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (sett
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
script.on_event(defines.events.on_gui_opened, function(event)
|
script.on_event(defines.events.on_gui_opened, function(event)
|
||||||
if event.entity and (event.entity.type == 'inserter' or (event.entity.type == 'entity-ghost' and event.entity.ghost_type == 'inserter')) then
|
if not event.entity then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if event.entity.type == 'inserter' or (event.entity.type == 'entity-ghost' and event.entity.ghost_type == 'inserter') then
|
||||||
inserter_gui_update(game.players[event.player_index], event.entity)
|
inserter_gui_update(game.players[event.player_index], event.entity)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user