mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-03-11 06:07:44 +01:00
Fix pulling partial stacks from double chests
This commit is contained in:
parent
7456eba0f5
commit
74de26b3c8
1 changed files with 2 additions and 2 deletions
|
@ -422,12 +422,12 @@ end
|
|||
local function hopper_pull_double(side) return function(pos, hop_pos, hop_inv, hop_list)
|
||||
local top_inv, bottom_inv = get_chest_inventories(pos, side)
|
||||
|
||||
local stack_id = mcl_util.select_stack(top_inv, "main", hop_inv, hop_list)
|
||||
local stack_id = mcl_util.select_stack(top_inv, "main", hop_inv, hop_list, nil, 1)
|
||||
if stack_id ~= nil then
|
||||
return top_inv, "main", stack_id
|
||||
end
|
||||
|
||||
stack_id = mcl_util.select_stack(bottom_inv, "main", hop_inv, hop_list)
|
||||
stack_id = mcl_util.select_stack(bottom_inv, "main", hop_inv, hop_list, nil, 1)
|
||||
return bottom_inv, "main", stack_id
|
||||
end end
|
||||
|
||||
|
|
Loading…
Reference in a new issue