From 2552f7f37bb72a133ea4bb36703283af46fd5b5d Mon Sep 17 00:00:00 2001 From: Justus Wolff Date: Sun, 15 Feb 2026 20:00:35 +0100 Subject: [PATCH] fix getitemdetail check under place --- src/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.lua b/src/main.lua index 115c91b..e7d78ad 100644 --- a/src/main.lua +++ b/src/main.lua @@ -256,7 +256,7 @@ local function place(direction) while true do local suc = func() if not suc then -- next slot - if cfunc() and turtle.getItemDetail(turtle.getSelectedSlot())["name"] ~= "minecraft:air" then return end + if cfunc() and turtle.getItemDetail(turtle.getSelectedSlot()) ~= nil then return end local current = turtle.getSelectedSlot() if current == 16 then turtle.select(1)