Skip to content

Commit aba8c37

Browse files
committedJul 30, 2020
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.
1 parent 9bba52c commit aba8c37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎builtin/game/falling.lua

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ core.register_entity(":__builtin:falling_node", {
5252
floats = false,
5353

5454
set_node = function(self, node, meta)
55+
node.param2 = node.param2 or 0
5556
self.node = node
5657
meta = meta or {}
5758
if type(meta.to_table) == "function" then

0 commit comments

Comments
 (0)
Please sign in to comment.