From 98cb51510f3b453fe762688d3451076e43680215 Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Mon, 20 May 2024 01:53:14 +0200 Subject: [PATCH] fix(coal-crafter): transfer exactly 8 essences --- coal-crafter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coal-crafter.lua b/coal-crafter.lua index f5465a8..0267bb7 100644 --- a/coal-crafter.lua +++ b/coal-crafter.lua @@ -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')