fix(turtle-utils): getMatureCrop implementation
This commit is contained in:
parent
1438db9973
commit
e20c7fd073
@ -128,7 +128,6 @@ end
|
|||||||
turtleUtils.getMatureCrop = function(inspectFn)
|
turtleUtils.getMatureCrop = function(inspectFn)
|
||||||
inspectFn = inspectFn or turtle.inspect
|
inspectFn = inspectFn or turtle.inspect
|
||||||
|
|
||||||
return function()
|
|
||||||
local isBlock, block = inspectFn()
|
local isBlock, block = inspectFn()
|
||||||
local blockStateAge = block and block.state and block.state.age
|
local blockStateAge = block and block.state and block.state.age
|
||||||
|
|
||||||
@ -138,7 +137,6 @@ turtleUtils.getMatureCrop = function(inspectFn)
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
turtleUtils.selectFirstEmptySlot = function()
|
turtleUtils.selectFirstEmptySlot = function()
|
||||||
for i = 1, 16, 1 do
|
for i = 1, 16, 1 do
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user