[boskid][2.0.23] Changing tiles in on_chunk_generated changes landing location
Posted: Thu Dec 05, 2024 12:41 am
My mod, Void Block, hooks on_chunk_generated to replace almost the entire surface with water/lava/whatever. However, as a consequence, somehow this alters the location where pods land, and they no longer come down at 0,0. This change persists even if the mod is removed.
I ran two tests. The NoMod save is an unmodded Vulcanus, and the pod correctly comes down at 0,0. The ModRemoved one is same seed, same map, but after Void Block has altered the surface, and the pod no longer lands at 0,0. The mod has been removed from the save so none of its code is running but the pod still lands in the wrong place, and as far as I can tell this happens every time.
(Those cliffs near the landing site don't seem to be bothering anything, as they worked fine in the unmodded test, but just to be sure I tried a landing after blowing them up with cliff explosives, and nothing changed there either)
This seems like a bug. Maybe I broke something, so if I've done something wrong in my code, please let me know what it is. I couldn't find anything that seemed to clobber the starting location, or any way to (re-)assert a location for pods to go to.
I ran two tests. The NoMod save is an unmodded Vulcanus, and the pod correctly comes down at 0,0. The ModRemoved one is same seed, same map, but after Void Block has altered the surface, and the pod no longer lands at 0,0. The mod has been removed from the save so none of its code is running but the pod still lands in the wrong place, and as far as I can tell this happens every time.
(Those cliffs near the landing site don't seem to be bothering anything, as they worked fine in the unmodded test, but just to be sure I tried a landing after blowing them up with cliff explosives, and nothing changed there either)
This seems like a bug. Maybe I broke something, so if I've done something wrong in my code, please let me know what it is. I couldn't find anything that seemed to clobber the starting location, or any way to (re-)assert a location for pods to go to.