Environment
Factorio 0.17.34
Crafting Combinator 10.8
Reproduction
- Let Robots build a crafting combinator (e.g. by ghost placement)
- Press Ctrl+Z to undo and let the robots pick up the combinator.
2.1 Observe: Where the combinator stood, there is an invisible module chest entity. You can hover over it and mine it manually.
- With an deconstruction planner try to deconstruct the chest.
3.1 This results in the following error:
Error while running event crafting_combinator::on_marked_for_deconstruction (ID 20)
__crafting_combinator__/script/cc.lua:77: attempt to index a nil value
stack traceback:
__crafting_combinator__/script/cc.lua:77: in function 'mark_for_deconstruction'
__crafting_combinator__/control.lua:192: in function <__crafting_combinator__/control.lua:191>
Tests
I tested it in a minimal creative environment:
a roboport, a storage chest with crafting combinators and a bit of solar power suffice.
Enable all tech/items/daytime/cheat mode.
Not crashing
Mining the remaining module chest manually won't result in a crash.