From b82bbbe5d50dd99f7b33d8a8f126fcc83539d502 Mon Sep 17 00:00:00 2001 From: Justus Wolff Date: Sun, 15 Feb 2026 19:38:34 +0100 Subject: [PATCH] add some checks inside place --- src/main.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.lua b/src/main.lua index 81fb785..d7224eb 100644 --- a/src/main.lua +++ b/src/main.lua @@ -243,16 +243,20 @@ local function move(direction) end local function place(direction) local func = turtle.place + local cfunc = turtle.compare if direction == "down" then func = turtle.placeDown + cfunc = turtle.compareDown end if direction == "up" then func = turtle.placeUp + cfunc = turtle.compareUp end 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 local current = turtle.getSelectedSlot() if current == 16 then turtle.select(1)