Browse Source

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.
master
SmallJoker 1 week ago
parent
commit
aba8c37531
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      builtin/game/falling.lua

+ 1
- 0
builtin/game/falling.lua View File

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


Loading…
Cancel
Save