From d623715d94152e38e817555f43c7c6ab2372045c Mon Sep 17 00:00:00 2001 From: Bryce w <55167737+blockhead100@users.noreply.github.com> Date: Thu, 20 Oct 2022 18:28:45 +0200 Subject: [PATCH] Add LV led and lamp --- technic/machines/register/common.lua | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/technic/machines/register/common.lua b/technic/machines/register/common.lua index 38354f9..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 @@ -74,7 +74,7 @@ if stack then local item0 = stack:to_table() if item0 then - item0["count"] = "1" + item0["count"] = 1 technic.tube_inject_item(pos, pos, vector.new(x_velocity, 0, z_velocity), item0) stack:take_item(1) inv:set_stack(output_name, i, stack) @@ -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