diff --git a/PHI-CL/changelog.txt b/PHI-CL/changelog.txt index 397d956..0cf60d9 100644 --- a/PHI-CL/changelog.txt +++ b/PHI-CL/changelog.txt @@ -1,3 +1,10 @@ +--------------------------------------------------------------------------------------------------- +Version: 3.0.111 +Date: 2025-06-06 + + Changes: + - [CL] Some changes to the control behaviour. + --------------------------------------------------------------------------------------------------- Version: 3.0.110 Date: 2025-06-06 diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 1aa7d78..b3706a8 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -198,7 +198,7 @@ if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (sett script.on_event(defines.events.on_entity_settings_pasted, function(e) local player = game.players[e.player_index] - if e.destination and (e.destination.type == 'inserter' or (e.destination.type == 'entity-ghost' and e.destination.ghost_type == 'inserter')) and player.opened == e.destination and (player.opened.type == 'inserter' or (player.opened.type == 'entity-ghost' and player.opened.ghost_type == 'inserter')) then + if e.destination and e.source and player.opened and e.destination.type and (e.destination.type == 'inserter' or (e.destination.type == 'entity-ghost' and e.destination.ghost_type == 'inserter')) and e.source.type and (e.source.type == 'inserter' or (e.source.type == 'entity-ghost' and e.source.ghost_type == 'inserter')) and player.opened == e.source then gui_update(player, player.opened) end end) diff --git a/PHI-CL/info.json b/PHI-CL/info.json index 9b31d1f..5129051 100644 --- a/PHI-CL/info.json +++ b/PHI-CL/info.json @@ -1,6 +1,6 @@ { "name": "PHI-CL", - "version": "3.0.110", + "version": "3.0.111", "factorio_version": "2.0", "date": "2025-06-06", "title": "Phidias Collection",