From 0296f7fb7ee9ccf4ef4434abbec4a29a7782a786 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Mon, 8 Aug 2022 00:18:03 -0600 Subject: [PATCH] update subterrane, fix a crash in torchspine growth --- df_trees/torchspine.lua | 4 ++-- subterrane | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/df_trees/torchspine.lua b/df_trees/torchspine.lua index fd16387..6d173cd 100644 --- a/df_trees/torchspine.lua +++ b/df_trees/torchspine.lua @@ -68,7 +68,7 @@ local grow_torchspine = function(pos) local node_above_def = minetest.registered_nodes[node_above.name] if not node_above_def.buildable_to then -- don't grow, but do continue cycling the torch state - minetest.swap_node(pos, {name = "df_trees:torchspine_1", param2 = node.param2}) + minetest.swap_node(pos, {name = "df_trees:torchspine_1", param2 = param2}) minetest.get_node_timer(pos):start(math.random(torchspine_min_delay, torchspine_max_delay)) return end @@ -85,7 +85,7 @@ local grow_torchspine = function(pos) end if height >= 4 then -- don't grow, but do continue cycling the torch state - minetest.swap_node(pos, {name = "df_trees:torchspine_1", param2 = node.param2}) + minetest.swap_node(pos, {name = "df_trees:torchspine_1", param2 = param2}) minetest.get_node_timer(pos):start(math.random(torchspine_min_delay, torchspine_max_delay)) return end diff --git a/subterrane b/subterrane index 40215b7..c5f46e1 160000 --- a/subterrane +++ b/subterrane @@ -1 +1 @@ -Subproject commit 40215b772e907d6f531fd1fc267c9a3741e5a177 +Subproject commit c5f46e113e5258567fce124780b7c7f6bb8fbe2e