mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-08-09 03:40:27 +02:00
update subterrane, fix a crash in torchspine growth
This commit is contained in:
@ -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
|
||||||
|
Submodule subterrane updated: 40215b772e...c5f46e113e
Reference in New Issue
Block a user