TechDudie
2021-02-09 43acec290067f9aca534647d46ba1f13cfeb377a
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