Skip to content

Commit

Permalink
Fix assertion when rebuilding an ghost with module requests
Browse files Browse the repository at this point in the history
And pray the sanity check removal has no side effects.
  • Loading branch information
Quezler committed Jan 21, 2025
1 parent 6ef8b9c commit a379abc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down

0 comments on commit a379abc

Please sign in to comment.