Hi! I was playing with Construction Drones and my Tree Cleaner mod (https://mods.factorio.com/mod/TreeCleaner), and I noticed that the construction drones are not deploying to pick up trees marked for deconstruction by the TC mod, but they do when the player marks the tree for deconstruction through the Deconstruction Planner or when pasting a blueprint. Am I missing a trigger for your mod's drones, or not using the LUA API properly? It's my first mod, so any advice is welcome.
The significant three lines of code are here (https://github.com/gepandz/tree-cleaner/blob/master/control.lua#L11-L13); I'm using order_deconstruction(game.forces["player"])
, which may not be the right way to go about it and still feels kinda hack-y. I'd appreciate any advice you can give, as I'm sure I'm just missing something (probably something basic... ;) ). Thanks!
-- GPS