From 26fbf865b52043eefc4c89a01e4ed48ae61e84a5 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Tue, 16 Jun 2020 13:03:39 +0200 Subject: [PATCH] nodetimer cleanup --- node.lua | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/node.lua b/node.lua index b9a7669..c3e1cc6 100644 --- a/node.lua +++ b/node.lua @@ -61,12 +61,6 @@ minetest.register_node("digibuilder:digibuilder", { end, on_construct = function(pos) - -- start nodetimer if not started - local timer = minetest.get_node_timer(pos) - if not timer:is_started() then - timer:start(2) - end - -- inventory local meta = minetest.get_meta(pos) local inv = meta:get_inventory() @@ -93,15 +87,7 @@ minetest.register_node("digibuilder:digibuilder", { return inv:is_empty("main") and not minetest.is_protected(pos, name) end, - on_timer = function()--pos, elapsed) - - -- restart timer - return true - end, - on_receive_fields = function(pos, _, fields, sender) - --local meta = minetest.get_meta(pos); - if not sender then return end @@ -111,12 +97,10 @@ minetest.register_node("digibuilder:digibuilder", { return end - if fields.set_digiline_channel then local meta = minetest.get_meta(pos); meta:set_string("channel", fields.digiline_channel or "") end - end, -- inventory protection