Outpost Planner for 1.1 deprecated


Automatically lay blueprints for mining outposts. Deprecated - switch to Mining Patch Planner by Rimbas

Utilities
2 years ago
1.1
33.3K

g Support Modded Small Electric Poles

5 months ago

rather than checking for exactly "small-electric-pole" when determining if added poles need to be placed to connect between rows, you could check of any pole with that string as part of its name. this would make it work with mods like lighted electric poles' "lighted-small-electric-pole".

for my own use, i changed the statement used from:
if entity.place_only_with_small_poles and state.conf.pole_name ~= "small-electric-pole"

to:
if entity.place_only_with_small_poles and (not string.find(state.conf.pole_name, "small-electric-pole",0, true))

not sure if this solution is robust enough for public release, but it would be nice if something similar was considered.

New response