mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-12-25 02:10:37 +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)
|
||||
df_farming.grow_underground_plant(pos, "df_farming:"..name, elapsed)
|
||||
end,
|
||||
|
||||
on_destruct = function(pos)
|
||||
minetest.get_node_timer(pos):stop()
|
||||
end,
|
||||
}
|
||||
|
||||
minetest.register_node("df_farming:"..name, def)
|
||||
|
@ -90,6 +90,10 @@ minetest.register_node("df_farming:plump_helmet_spawn", {
|
||||
on_timer = function(pos, elapsed)
|
||||
df_farming.grow_underground_plant(pos, "df_farming:plump_helmet_spawn", elapsed)
|
||||
end,
|
||||
|
||||
on_destruct = function(pos)
|
||||
minetest.get_node_timer(pos):stop()
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("df_farming:plump_helmet_1", {
|
||||
|
Loading…
Reference in New Issue
Block a user