mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 02:55: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)
|
||||
|
||||
script.on_event(defines.events.on_gui_opened, function(event)
|
||||
local player = game.players[event.player_index]
|
||||
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user