mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-22 15:23:43 +01:00
Change the HP distributor so that partial stacks can also be moved
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user