Expand mcl_util.hopper_pull() to mcl_util.hopper_pull_to_inventory()

This commit is contained in:
teknomunk 2024-08-08 07:01:26 -05:00
parent 9be2361398
commit 4fe793d29f
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ local function straight_hopper_act(pos, node, active_object_count, active_count_
mcl_util.hopper_push(pos, dst_pos)
local src_pos = vector.offset(pos, 0, 1, 0)
mcl_util.hopper_pull(pos, src_pos)
mcl_util.hopper_pull_to_inventory(minetest.get_meta(pos):get_inventory(), "main", src_pos, pos)
end
local function bent_hopper_act(pos, node, active_object_count, active_object_count_wider)
@ -93,7 +93,7 @@ local function bent_hopper_act(pos, node, active_object_count, active_object_cou
end
local src_pos = vector.offset(pos, 0, 1, 0)
mcl_util.hopper_pull(pos, src_pos)
mcl_util.hopper_pull_to_inventory(inv, "main", src_pos, pos)
end
--[[