forked from minetest-mods/technic
Fix items sending
This commit is contained in:
parent
849526cd76
commit
35b10adb40
@ -97,12 +97,11 @@ minetest.register_abm({
|
|||||||
interval = 1,
|
interval = 1,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
local pos1={}
|
local pos1 = vector.add(pos, vector.new(0, -1, 0))
|
||||||
pos1.x = pos.x
|
local node1 = minetest.get_node(pos1)
|
||||||
pos1.y = pos.y-1
|
if minetest.get_item_group(node1.name, "tubedevice") > 0 then
|
||||||
pos1.z = pos.z
|
inject_items(pos)
|
||||||
local meta=minetest.env:get_meta(pos1)
|
end
|
||||||
if meta:get_int("tubelike")==1 then inject_items (pos) end
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -101,8 +101,8 @@ function technic.handle_machine_pipeworks(pos, tube_upgrade, send_function)
|
|||||||
if node.param2 == 0 then pos1.x = pos1.x + 1 x_velocity = 1 end
|
if node.param2 == 0 then pos1.x = pos1.x + 1 x_velocity = 1 end
|
||||||
|
|
||||||
local output_tube_connected = false
|
local output_tube_connected = false
|
||||||
local meta1 = minetest.get_meta(pos1)
|
local node1 = minetest.get_node(pos1)
|
||||||
if meta1:get_int("tubelike") == 1 then
|
if minetest.get_item_group(node1.name, "tubedevice") > 0 then
|
||||||
output_tube_connected = true
|
output_tube_connected = true
|
||||||
end
|
end
|
||||||
tube_time = meta:get_int("tube_time")
|
tube_time = meta:get_int("tube_time")
|
||||||
|
Loading…
Reference in New Issue
Block a user