fix getitemdetail check under place

This commit is contained in:
Justus Wolff
2026-02-15 20:00:35 +01:00
parent a69bb94059
commit 2552f7f37b

View File

@@ -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)