summaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2020-07-30 19:03:48 +0200
committerSmallJoker <mk939@ymail.com>2020-07-30 19:03:48 +0200
commitaba8c3753162320c7cc8a66913ad82f4f1fd0d8b (patch)
treec995bb5b18920486815b6e08cea7a0f64ff4c012 /builtin/game
parent9bba52c4000a06043f5100dbb0ef66d869707ffc (diff)
downloadminetest-aba8c3753162320c7cc8a66913ad82f4f1fd0d8b.tar.gz
minetest-aba8c3753162320c7cc8a66913ad82f4f1fd0d8b.tar.bz2
minetest-aba8c3753162320c7cc8a66913ad82f4f1fd0d8b.zip
Falling: Fix error caused by missing param2
Falling nodes that were spawned prior the recent falling node changes did not require param2. Default to param2 = 0 when none is found in the node data.
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/falling.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/game/falling.lua b/builtin/game/falling.lua
index 714506a5f..4bfcca9e7 100644
--- a/builtin/game/falling.lua
+++ b/builtin/game/falling.lua
@@ -52,6 +52,7 @@ core.register_entity(":__builtin:falling_node", {
floats = false,
set_node = function(self, node, meta)
+ node.param2 = node.param2 or 0
self.node = node
meta = meta or {}
if type(meta.to_table) == "function" then