fix getitemdetail check under place
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user