softmix / AutoDeconstruct

Mod for Factorio that marks drills that have no more resources to mine for deconstruction.
MIT License
11 stars 9 forks source link

Add handling of mining drills using fluids #2

Closed nicolas-lang closed 3 years ago

nicolas-lang commented 4 years ago

This change adds pipe-ghosts (to be constructed) at the location of fluid-using drills marked for deconstruction. This way it is also possible manage uranium and gold (etc.) mining with this mod, without breaking the fluid distribution.

The force of the player building the pipes is hardcoded to game.players[1].force, this is suboptimal but works.

I initially created this for 0.1.12 and only tested with 0.1.14 for like 30s gametime... it doesn't crash but is not really tested. Please review my changes.