From a379abc56ccb82be86b6c1f6df0c9725cb464fd4 Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Tue, 21 Jan 2025 11:19:32 +0100 Subject: [PATCH] Fix assertion when rebuilding an ghost with module requests And pray the sanity check removal has no side effects. --- .../changelog.txt | 5 +++++ .../control.lua | 1 - .../info.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/changelog.txt b/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/changelog.txt index c6117cb8..b96d1c48 100644 --- a/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/changelog.txt +++ b/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 1.1.18 +Date: 2025. 01. 21 + Info: + - Fix assertion when rebuilding an ghost with module requests +--------------------------------------------------------------------------------------------------- Version: 1.1.17 Date: 2024. 12. 16 Info: diff --git a/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/control.lua b/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/control.lua index 2c0d82fe..8e9cf128 100644 --- a/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/control.lua +++ b/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/control.lua @@ -144,7 +144,6 @@ function Handler.on_tick(event) local proxy_that_makes_this_entity_wait = storage.proxy_that_makes_this_entity_wait[entity.unit_number] if proxy_that_makes_this_entity_wait then assert(proxy_that_makes_this_entity_wait.proxy.valid == false) - assert(proxy_that_makes_this_entity_wait.proxy_target.valid == true) Handler.on_object_destroyed({registration_number = proxy_that_makes_this_entity_wait.deathrattle_id}) end diff --git a/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/info.json b/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/info.json index 2984ddec..f891a1d8 100644 --- a/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/info.json +++ b/mods_2.0/019_newly-constructed-machines-wait-for-their-modules/info.json @@ -3,7 +3,7 @@ "title": "Newly constructed machines wait for their modules", "description": "You probably wouldn't want machines with productivity or quality to start crafting prematurely.", - "version": "1.1.17", + "version": "1.1.18", "author": "Quezler", "factorio_version": "2.0",