Closed robot256 closed 3 years ago
You removed the robot specific code (line 118), did you test for valid behaviour when placing landfill with robots ontop of existing waterways? I can't remember the exact reason why i added that piece of code, but i remember that it was added out of necessity at the time.
I did test that the event for robots placing landfill included surface_index. Didn't think to test placing it on top of water ways specifically. It wouldn't hurt to check the robot's surface I suppose, but I was very suspicious of the code that defaults to Nauvis instead of erroring/giving up.
I tested just now and confirmed that this code does correctly prevent building landfill on waterways, both on Nauvis and on other surfaces. on_robot_built_tile does include surface_index in all cases.
thanks for the thorough testing!
You're welcome! Thanks for maintaining the mod.
On a different topic, would you be open to a feature that allows other mods to add new boats and ships? I could probably work out a remote interface so they could be added to your build checking code.