Fixed Gravel Sieve bug
This commit is contained in:
parent
14e1465923
commit
1da84cdf91
@ -75,6 +75,7 @@ end
|
|||||||
|
|
||||||
local function sieving(pos, crd, nvm, inv)
|
local function sieving(pos, crd, nvm, inv)
|
||||||
local src, dst
|
local src, dst
|
||||||
|
for i = 1, crd.num_items do
|
||||||
if inv:contains_item("src", ItemStack("techage:basalt_gravel")) then
|
if inv:contains_item("src", ItemStack("techage:basalt_gravel")) then
|
||||||
dst, src = get_random_basalt_ore(), ItemStack("techage:basalt_gravel")
|
dst, src = get_random_basalt_ore(), ItemStack("techage:basalt_gravel")
|
||||||
elseif inv:contains_item("src", ItemStack("default:gravel")) then
|
elseif inv:contains_item("src", ItemStack("default:gravel")) then
|
||||||
@ -89,6 +90,7 @@ local function sieving(pos, crd, nvm, inv)
|
|||||||
end
|
end
|
||||||
inv:add_item("dst", dst)
|
inv:add_item("dst", dst)
|
||||||
inv:remove_item("src", src)
|
inv:remove_item("src", src)
|
||||||
|
end
|
||||||
crd.State:keep_running(pos, nvm, COUNTDOWN_TICKS)
|
crd.State:keep_running(pos, nvm, COUNTDOWN_TICKS)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user