Skip to content
Permalink
Browse files

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.
  • Loading branch information
SmallJoker committed Jul 30, 2020
1 parent 9bba52c commit aba8c3753162320c7cc8a66913ad82f4f1fd0d8b
Showing with 1 addition and 0 deletions.
  1. +1 −0 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

0 comments on commit aba8c37

Please sign in to comment.
You can’t perform that action at this time.