mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-22 23:33:44 +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])
|
rearrange_table(kvFilterItemNames[name])
|
||||||
busy = true
|
busy = true
|
||||||
break
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -257,6 +263,10 @@ local function distributing(pos, meta)
|
|||||||
counter[color] = counter[color] + num
|
counter[color] = counter[color] + num
|
||||||
busy = true
|
busy = true
|
||||||
end
|
end
|
||||||
|
elseif num ~= stack:get_count() then
|
||||||
|
local color = Side2Color[side]
|
||||||
|
counter[color] = counter[color] + stack:get_count()
|
||||||
|
busy = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user