Skip to content

Commit

Permalink
Falling: Fix error caused by missing param2
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SmallJoker committed Jul 30, 2020
1 parent 9bba52c commit aba8c37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/game/falling.lua
Expand Up @@ -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
Expand Down

0 comments on commit aba8c37

Please sign in to comment.