mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-01-13 11:40:28 +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]
|
local node_above_def = minetest.registered_nodes[node_above.name]
|
||||||
if not node_above_def.buildable_to then
|
if not node_above_def.buildable_to then
|
||||||
-- don't grow, but do continue cycling the torch state
|
-- 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))
|
minetest.get_node_timer(pos):start(math.random(torchspine_min_delay, torchspine_max_delay))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@ -85,7 +85,7 @@ local grow_torchspine = function(pos)
|
|||||||
end
|
end
|
||||||
if height >= 4 then
|
if height >= 4 then
|
||||||
-- don't grow, but do continue cycling the torch state
|
-- 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))
|
minetest.get_node_timer(pos):start(math.random(torchspine_min_delay, torchspine_max_delay))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 40215b772e907d6f531fd1fc267c9a3741e5a177
|
Subproject commit c5f46e113e5258567fce124780b7c7f6bb8fbe2e
|
Loading…
Reference in New Issue
Block a user