Aaron Suen
a1b2df3941
Begin standardization of unload bounds check
- New near_unloaded API that supports custom distance parameter, map bounds check, and some optimizations. - Add area automatic unload check support to ABM API and add to applicable ABMs, replacing many old manual checks. Note that the explicit unload check is only strictly necessary when something will happen due to a node NOT being present in the area, e.g. something igniting due to absent coolant, or soaking quantity being reset due to missing sources. In simple cases where the absence of a thing causes the ABM to do nothing, then the standard check can work because the default action is to do nothing anyway.
======================================================================== \ /\ \ / \ /\ \ /\ |\ / / \ /\ |\ / | \ | / \ | \ / | / \ | \ / | \ | | | | | |__ | | | | / |__ \ \/ | | | | | \ / | | |/ | \ \ / | / \ \ / \ / |\ \ \ \/ |/ \ \/ \/ | \ \ ======================================================================== NodeCore - Minetest's top original voxel game about emergent mechanics and exploration ------------------------------------------------------------------------ A surreal dream-world where everything is possible but nothing is easy. Peaceful and Zen. Brutally obstinate. Prepare to unlearn everything you thought you knew about voxel sandbox games. Visit the Minetest ContentDB Listing (below) for more details. ------------------------------------------------------------------------ NodeCore is (C)2018-2021 by Aaron Suen <warr1024@gmail.com> MIT License (http://www.opensource.org/licenses/MIT) See included LICENSE file for full details and credits Minetest ContentDB Listing: https://content.minetest.net/packages/Warr1024/nodecore/ GitLab: https://gitlab.com/sztest/nodecore Chat Networks (all bridged): Discord: https://discord.gg/NNYeF6f Matrix: #nodecore:matrix.org IRC: #nodecore on irc.libera.chat Semi-Unofficial Wiki: https://nodecore.mine.nu/ Minetest Forum Topic: https://forum.minetest.net/viewtopic.php?t=24857 ------------------------------------------------------------------------ ========================================================================
Languages
Lua
98.7%
JavaScript
1.3%