node timer bugfix
parent
eaca058b2c
commit
47a1a67872
|
@ -274,6 +274,9 @@ techage.register_node({"techage:coalboiler_top"}, {
|
|||
if topic == "trigger" then
|
||||
local mem = tubelib2.get_mem(pos)
|
||||
mem.fire_trigger = true
|
||||
if not minetest.get_node_timer(pos):is_started() then
|
||||
minetest.get_node_timer(pos):start(CYCLE_TIME)
|
||||
end
|
||||
if mem.running then
|
||||
mem.power_ratio = transfer(pos, topic, payload)
|
||||
return mem.power_ratio
|
||||
|
|
Loading…
Reference in New Issue