node timer bugfix

This commit is contained in:
Joachim Stolberg 2019-08-19 21:29:55 +02:00
parent eaca058b2c
commit 47a1a67872

View File

@ -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