mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-09 16:49:35 +01:00
Swap push/pull for straight hoppers
This commit is contained in:
parent
42fe5c4c85
commit
3b63b1eec3
1 changed files with 2 additions and 2 deletions
|
@ -298,14 +298,14 @@ local def_hopper = {
|
||||||
-- Only pull to containers
|
-- Only pull to containers
|
||||||
if cart and cart.groups and (cart.groups.container or 0) ~= 0 then
|
if cart and cart.groups and (cart.groups.container or 0) ~= 0 then
|
||||||
cart:add_node_watch(pos)
|
cart:add_node_watch(pos)
|
||||||
hopper_push_to_mc(cart, pos, 5)
|
hopper_pull_from_mc(cart, pos, 5)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
_mcl_minecarts_on_enter_above = function(pos, cart, next_dir)
|
_mcl_minecarts_on_enter_above = function(pos, cart, next_dir)
|
||||||
-- Only push to containers
|
-- Only push to containers
|
||||||
if cart and cart.groups and (cart.groups.container or 0) ~= 0 then
|
if cart and cart.groups and (cart.groups.container or 0) ~= 0 then
|
||||||
cart:add_node_watch(pos)
|
cart:add_node_watch(pos)
|
||||||
hopper_pull_from_mc(cart, pos, 5)
|
hopper_push_to_mc(cart, pos, 5)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
_mcl_minecarts_on_leave_above = function(pos, cart, next_dir)
|
_mcl_minecarts_on_leave_above = function(pos, cart, next_dir)
|
||||||
|
|
Loading…
Reference in a new issue