mirror of
https://github.com/minetest-mods/hopper.git
synced 2024-12-22 13:22:28 +01:00
Side hoppers pass onto other hoppers now
This commit is contained in:
parent
8144ef44c7
commit
192ca97b68
12
init.lua
12
init.lua
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user