mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -221,8 +221,16 @@ 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)
|
||||||
|
local player = game.players[event.player_index]
|
||||||
|
|
||||||
if event.entity then
|
if event.entity then
|
||||||
gui_update(game.players[event.player_index], event.entity)
|
if player.opened and player.opened == event.entity and event.entity.type == 'proxy-container' then
|
||||||
|
player.opened = nil
|
||||||
|
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
gui_update(player, event.entity)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user