Aaron Suen
1885fb9359
Major wield item rework
Instead of spawning these when players first log in and have the entities update their state on_step, just run a single globalstep that walks across all players and inventories, and then across all entities, in a couple of passes, and reconciles everything. This should also deal with entities that are lost for random or arbitrary reasons, which seems to be the remaining known cause of wield items spontaneously disappearing. The code is also simpler (a single loop with a few linear passes) and probably more efficient.
======================================================================== \ /\ \ / \ /\ \ /\ |\ / / \ /\ |\ / | \ | / \ | \ / | / \ | \ / | \ | | | | | |__ | | | | / |__ \ \/ | | | | | \ / | | |/ | \ \ / | / \ \ / \ / |\ \ \ \/ |/ \ \/ \/ | \ \ ======================================================================== 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. ------------------------------------------------------------------------ (C) by Aaron Suen <warr1024@gmail.com> (and other contributors) 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 Donate: https://liberapay.com/NodeCore 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%