aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/falling.lua
AgeCommit message (Collapse)Author
2016-04-20falling: walk 4 additional diagonally down directions.Auke Kok
This seems very little cost and matches the old behavior more closely. This will cause some more falling nodes to get added to falling clusters. With the efficiency of the algorithm, this really doesn't do much damage.
2016-04-11Convert nodeupdate to non-recursiveAuke Kok
This took me a while to figure out. We no longer visit all 9 block around and with the touched node, but instead visit adjacent plus self. We then walk -non- recursively through all neigbors and if they cause a nodeupdate, we just keep walking until it ends. On the way back we prune the tail. I've tested this with 8000+ sand nodes. Video result is here: https://youtu.be/liKKgLefhFQ Took ~ 10 seconds to process and return to normal.
2016-03-29stop falling.lua errortenplus1
2016-03-27 15:47:01: ERROR[Main]: ServerError: Lua: Runtime error from mod '*builtin*' in callback luaentity_Step(): Node name is not set or is not a string! 2016-03-27 15:47:01: ERROR[Main]: stack traceback: 2016-03-27 15:47:01: ERROR[Main]: [C]: in function 'add_node' 2016-03-27 15:47:01: ERROR[Main]: /usr/share/minetest/builtin/game/falling.lua:96: in function </usr/share/minetest/builtin/game/falling.lua:43>
2016-03-25Falling: Set acceleration on step againRui
Commit 65c09a96f41705bb8e75fc5ff4276342be91ed11 "Set acceleration only once in falling node" has made the acceleration being set only once. But this has introduced a regression. Fix #3884.
2016-03-19Builtin/game/falling: Re-add comma removed by recent commitparamat
2016-03-19Set acceleration only once in falling nodeRui914
2015-09-01Minor tweaks __builtin:falling_nodeRui
2014-11-26Fix some undeclared global variablesCraig Davison
2014-09-28Use round if falling node is misplacedSmallJoker
Fixes: http://i.imgur.com/arAWw1i.png (middle-right)
2014-08-22Remove buildable_to nodes without dropping item when replaced by a falling nodeCasimir
2014-06-08Allow custom liquids to have dropssfan5
2014-05-08Use "core" namespace internallyShadowNinja
2014-05-07Organize builtin into subdirectoriesShadowNinja