From 4775d98fb7e12f7210cf778351767828e551011d Mon Sep 17 00:00:00 2001 From: SmallJoker <mk939@ymail.com> Date: Thu, 20 Oct 2022 20:08:56 +0200 Subject: [PATCH] Unify and simplify LED/Lamp node definition --- technic/machines/register/common.lua | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/technic/machines/register/common.lua b/technic/machines/register/common.lua index 9d88702..0e7658b 100644 --- a/technic/machines/register/common.lua +++ b/technic/machines/register/common.lua @@ -65,7 +65,7 @@ if output_name == nil then output_name = "dst" end - + local meta = minetest.get_meta(pos) local inv = meta:get_inventory() local i = 0 @@ -83,7 +83,6 @@ end end end - function technic.smelt_item(meta, result, speed) local inv = meta:get_inventory() @@ -109,10 +108,9 @@ if send_function == nil then send_function = technic.send_items end - + local node = minetest.get_node(pos) local meta = minetest.get_meta(pos) - local inv = meta:get_inventory() local pos1 = vector.new(pos) local x_velocity = 0 local z_velocity = 0 -- Gitblit v1.8.0