|
Line 0
Link Here
|
|
|
1 |
From aba8c3753162320c7cc8a66913ad82f4f1fd0d8b Mon Sep 17 00:00:00 2001 |
| 2 |
From: SmallJoker <mk939@ymail.com> |
| 3 |
Date: Thu, 30 Jul 2020 19:03:48 +0200 |
| 4 |
Subject: [PATCH] Falling: Fix error caused by missing param2 |
| 5 |
|
| 6 |
Falling nodes that were spawned prior the recent falling node changes did not require param2. |
| 7 |
Default to param2 = 0 when none is found in the node data. |
| 8 |
--- |
| 9 |
builtin/game/falling.lua | 1 + |
| 10 |
1 file changed, 1 insertion(+) |
| 11 |
|
| 12 |
diff --git builtin/game/falling.lua builtin/game/falling.lua |
| 13 |
index 714506a5f1b..4bfcca9e774 100644 |
| 14 |
--- builtin/game/falling.lua |
| 15 |
+++ builtin/game/falling.lua |
| 16 |
@@ -52,6 +52,7 @@ core.register_entity(":__builtin:falling_node", { |
| 17 |
floats = false, |
| 18 |
|
| 19 |
set_node = function(self, node, meta) |
| 20 |
+ node.param2 = node.param2 or 0 |
| 21 |
self.node = node |
| 22 |
meta = meta or {} |
| 23 |
if type(meta.to_table) == "function" then |