Side hoppers pass onto other hoppers now

This commit is contained in:
tenplus1 2015-06-16 10:08:18 +01:00
parent 8144ef44c7
commit 192ca97b68

@ -215,7 +215,7 @@ minetest.register_abm({
--local a = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name
--local b = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name
-- input
-- input (from above)
if a == "default:chest"
or a == "default:chest_locked"
@ -233,7 +233,7 @@ minetest.register_abm({
end
-- output
-- output (to below)
if b == "default:chest"
or b == "default:chest_locked"
@ -290,7 +290,7 @@ minetest.register_abm({
-- local a = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name
-- local b = minetest.get_node(front).name
-- input
-- input (from above)
if a == "default:chest"
or a == "default:chest_locked"
@ -308,11 +308,13 @@ minetest.register_abm({
end
-- output
-- output (to side)
if b == "default:chest"
or b == "default:chest_locked"
or b == "protector:chest" then
or b == "protector:chest"
or b == "hopper:hopper"
or b == "hopper:hopper_side" then
-- hopper to chest beside
transfer("main", pos, "main", front)