Change the HP distributor so that partial stacks can also be moved

This commit is contained in:
Joachim Stolberg 2021-08-01 20:25:13 +02:00
parent 881696e9bc
commit 6a0f0b6560

@ -244,6 +244,12 @@ local function distributing(pos, meta)
rearrange_table(kvFilterItemNames[name])
busy = true
break
elseif num ~= stack:get_count() then
local color = Side2Color[side]
counter[color] = counter[color] + stack:get_count()
rearrange_table(kvFilterItemNames[name])
busy = true
break
end
end
@ -257,6 +263,10 @@ local function distributing(pos, meta)
counter[color] = counter[color] + num
busy = true
end
elseif num ~= stack:get_count() then
local color = Side2Color[side]
counter[color] = counter[color] + stack:get_count()
busy = true
end
end
end