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)