mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-12-25 18:30:36 +01:00
update subterrane, fix a crash in torchspine growth
This commit is contained in:
parent
dbc5dd38a3
commit
0296f7fb7e
@ -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
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 40215b772e907d6f531fd1fc267c9a3741e5a177
|
||||
Subproject commit c5f46e113e5258567fce124780b7c7f6bb8fbe2e
|
Loading…
Reference in New Issue
Block a user