1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-06-30 15:20:34 +02:00

Added chests and furnaces autoconnect to tubes.

Fixed a bug where autocrafter could bbe used to clone items.
Removed test code.
This commit is contained in:
Novatux
2013-01-20 07:57:58 +01:00
parent 5edb7a61a3
commit 4759791034
4 changed files with 25 additions and 4 deletions

View File

@ -282,7 +282,6 @@ function notvel(tbl,vel)
end
function go_next(pos,velocity,stack)
--print(dump(pos))
local chests={}
local tubes={}
local cnode=minetest.env:get_node(pos)
@ -313,7 +312,6 @@ function go_next(pos,velocity,stack)
npos=addVect(pos,vect)
node=minetest.env:get_node(npos)
tube_receiver=minetest.get_item_group(node.name,"tubedevice_receiver")
--tubelike=minetest.get_item_group(node.name,"tubelike")
meta=minetest.env:get_meta(npos)
tubelike=meta:get_int("tubelike")
if tube_receiver==1 then