fix(coal-crafter): transfer exactly 8 essences
This commit is contained in:
parent
b81c0b6921
commit
98cb51510f
@ -80,7 +80,7 @@ local function main()
|
|||||||
bufferInventory = turtleUtils.waitForInventory('front', WAIT_INVENTORY_TIME)
|
bufferInventory = turtleUtils.waitForInventory('front', WAIT_INVENTORY_TIME)
|
||||||
|
|
||||||
local coalEssenceSlot = waitForCoalEssence(storageInventory)
|
local coalEssenceSlot = waitForCoalEssence(storageInventory)
|
||||||
local pushOk = storageInventory.pushItems(peripheral.getName(bufferInventory), coalEssenceSlot)
|
local pushOk = storageInventory.pushItems(peripheral.getName(bufferInventory), coalEssenceSlot, MIN_ESSENCE_NEEDED)
|
||||||
|
|
||||||
if not pushOk then
|
if not pushOk then
|
||||||
error('cannot pushItems from storage to buffer')
|
error('cannot pushItems from storage to buffer')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user