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:
SmallJoker 2020-07-30 19:03:48 +02:00
父節點 9bba52c400
當前提交 aba8c37531
共有 1 個檔案被更改,包括 1 行新增0 行删除

查看文件

@ -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