mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-12-26 02:40:36 +01:00
stop timers when seeds are picked up
This commit is contained in:
parent
c8fa25ccd7
commit
1d7b6010c3
@ -171,6 +171,10 @@ df_farming.register_seed = function(name, description, image, stage_one, grow_ti
|
|||||||
on_timer = function(pos, elapsed)
|
on_timer = function(pos, elapsed)
|
||||||
df_farming.grow_underground_plant(pos, "df_farming:"..name, elapsed)
|
df_farming.grow_underground_plant(pos, "df_farming:"..name, elapsed)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
on_destruct = function(pos)
|
||||||
|
minetest.get_node_timer(pos):stop()
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
minetest.register_node("df_farming:"..name, def)
|
minetest.register_node("df_farming:"..name, def)
|
||||||
|
@ -90,6 +90,10 @@ minetest.register_node("df_farming:plump_helmet_spawn", {
|
|||||||
on_timer = function(pos, elapsed)
|
on_timer = function(pos, elapsed)
|
||||||
df_farming.grow_underground_plant(pos, "df_farming:plump_helmet_spawn", elapsed)
|
df_farming.grow_underground_plant(pos, "df_farming:plump_helmet_spawn", elapsed)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
on_destruct = function(pos)
|
||||||
|
minetest.get_node_timer(pos):stop()
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("df_farming:plump_helmet_1", {
|
minetest.register_node("df_farming:plump_helmet_1", {
|
||||||
|
Loading…
Reference in New Issue
Block a user