Summary: Whatever method actually handles the destroy process (which does properly run when the entity is destroyed), it isn’t the one defined as
Steps to reproduce:
- Start game with DebugTools mod enabled
- Create pasture
- Select pasture, open Lua console, and run
Expected Results: Timers like the
stray_interval_timer should be gone, because those are destroyed and set to
nil by the
Actual Results: Nothing changes.
destroy() is pointing to a function that does nothing, and the real destroy function is hidden somewhere and getting called by the game when the pasture gets destroyed, it’s impossible to override the
destroy() function in a mod.
Version Number and Mods in use: Latest unstable, no mods that come anywhere near this file (disabled ACE for testing it).