mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
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.
This commit is contained in:
parent
9bba52c400
commit
aba8c37531
@ -52,6 +52,7 @@ core.register_entity(":__builtin:falling_node", {
|
|||||||
floats = false,
|
floats = false,
|
||||||
|
|
||||||
set_node = function(self, node, meta)
|
set_node = function(self, node, meta)
|
||||||
|
node.param2 = node.param2 or 0
|
||||||
self.node = node
|
self.node = node
|
||||||
meta = meta or {}
|
meta = meta or {}
|
||||||
if type(meta.to_table) == "function" then
|
if type(meta.to_table) == "function" then
|
||||||
|
Loading…
Reference in New Issue
Block a user