I have a problem with my mod https://mods.factorio.com/mod/SmogSolarPanels
How it works:
If the player places solar panel, then this panel will be added to the global table.
Every tick will be checked one entity from the table. If in this position is another pollution as expected, then new entity with lower/higher power will be placed on this position.
Here is not fast_replaceable_group by solar panels and I need to destroy old solar panel. On the destroying I get new item-on-the-ground under this entity.
The bug cannot be reproduced due
Code: Select all
/c game.player.selected.destroy()