When a factissmo building is destroyed with this mod enabled, the game crashes.
Error while running event factorissimo-2-notnotmelon :: on_entity_died (ID 4)
factorissimo-2-notnotmelon /script/factory-buildings.lua:577: Failed to
generate factory item. Are you using the quantum-fabricator mod? See
https://github.com/notnotmelon/factorissimo-2-notnotmelon/issues/203
stack traceback:
[C]: in function 'assert'
factorissimo-2-notnotmelon /script/factory-buildings.lua:577: in function '?'
factorissimo-2-notnotmelon /lib/events.lua:25: in function
factorissimo-2-notnotmelon
/lib/events.lua:23>
This is due to factorissmo tries to spawn a factory item and mark it for destruction. But this mod detects a item is marked for destruction, and calls instant deforestation on the item, delete it before factorissmo asserts the item is valid.
Solution: check for factory item and don't delete it.
In scripts/debuilder.lua, in instant_deforestation(entity, player_index), line 130:
if Non_deconstructable_entities[entity.stack.name] then return end
(ps, you have no idea how long I spend trying to figure out what was going on XD)