fix(coal-crafter): transfer exactly 8 essences

This commit is contained in:
Guillaume ARM 2024-05-20 01:53:14 +02:00
parent b81c0b6921
commit 98cb51510f

View File

@ -80,7 +80,7 @@ local function main()
bufferInventory = turtleUtils.waitForInventory('front', WAIT_INVENTORY_TIME)
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
error('cannot pushItems from storage to buffer')