Pusher: Change inventory pull start pos from 2 to 1

This commit is contained in:
Joachim Stolberg 2021-03-06 11:28:50 +01:00
parent 339709d74f
commit 449ad9936b

View File

@ -436,7 +436,7 @@ function techage.get_items(pos, inv, listname, num)
end end
local size = inv:get_size(listname) local size = inv:get_size(listname)
local mem = techage.get_mem(pos) local mem = techage.get_mem(pos)
mem.ta_startpos = mem.ta_startpos or 1 mem.ta_startpos = mem.ta_startpos or 0
for idx = mem.ta_startpos, mem.ta_startpos+size do for idx = mem.ta_startpos, mem.ta_startpos+size do
idx = (idx % size) + 1 idx = (idx % size) + 1
local items = inv:get_stack(listname, idx) local items = inv:get_stack(listname, idx)