From 46bffd82d38ded68bcf102efd25da06a96e64a5d Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Tue, 12 Sep 2017 00:20:52 -0600 Subject: standardize config settings --- nodes/node_controllers.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nodes/node_controllers.lua') diff --git a/nodes/node_controllers.lua b/nodes/node_controllers.lua index a09cfbe..76bb40b 100644 --- a/nodes/node_controllers.lua +++ b/nodes/node_controllers.lua @@ -64,7 +64,7 @@ minetest.register_node("digtron:controller", { -- Start the delay before digtron can run again. minetest.get_meta(newpos):set_string("waiting", "true") - minetest.get_node_timer(newpos):start(digtron.cycle_time) + minetest.get_node_timer(newpos):start(digtron.config.cycle_time) end, on_timer = function(pos, elapsed) @@ -200,7 +200,7 @@ minetest.register_node("digtron:auto_controller", { meta:set_string("infotext", string.format(S("Heat remaining in controller furnace: %d"), 0)) meta:set_string("formspec", auto_formspec) -- Reusing offset and period to keep the digtron node-moving code simple, and the names still fit well - meta:set_int("period", digtron.cycle_time) + meta:set_int("period", digtron.config.cycle_time) meta:set_int("offset", 0) meta:set_int("cycles", 0) meta:set_int("slope", 0) @@ -232,7 +232,7 @@ minetest.register_node("digtron:auto_controller", { local cycles = tonumber(fields.cycles) if period and period > 0 then - meta:set_int("period", math.max(digtron.cycle_time, math.floor(period))) + meta:set_int("period", math.max(digtron.config.cycle_time, math.floor(period))) end if offset then @@ -335,7 +335,7 @@ minetest.register_node("digtron:pusher", { -- Start the delay before digtron can run again. minetest.get_meta(newpos):set_string("waiting", "true") - minetest.get_node_timer(newpos):start(digtron.cycle_time) + minetest.get_node_timer(newpos):start(digtron.config.cycle_time) end, on_timer = function(pos, elapsed) -- cgit v1.2.3