node timer bugfix
This commit is contained in:
parent
eaca058b2c
commit
47a1a67872
@ -274,6 +274,9 @@ techage.register_node({"techage:coalboiler_top"}, {
|
|||||||
if topic == "trigger" then
|
if topic == "trigger" then
|
||||||
local mem = tubelib2.get_mem(pos)
|
local mem = tubelib2.get_mem(pos)
|
||||||
mem.fire_trigger = true
|
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
|
if mem.running then
|
||||||
mem.power_ratio = transfer(pos, topic, payload)
|
mem.power_ratio = transfer(pos, topic, payload)
|
||||||
return mem.power_ratio
|
return mem.power_ratio
|
||||||
|
Loading…
Reference in New Issue
Block a user