When a mod invokes "order_deconstruction" on a belt entity in front of a mining drill output, that belt may not be deconstructed (despite being marked with a red cross in the game). This may happen when a mod caches the belt entities in eg. "on_init" and then tries to deconstruct the entities in "on_tick".
I've attached a simple mod and a savegame that displays this peculiar behavior.
Running the following command before the mod manage to mark the belts in front of the mining drills for deconstruction will cause all belts to be removed:
Code: Select all
/c for _, entity in pairs(game.surfaces[1].find_entities_filtered{name="transport-belt", force="player"}) do entity.order_deconstruction(entity.force) end
By additionally including mod "Creative Mode" I was able to load the savegame, and with only these two mods I was still able to reproduce the error.