Fix getFuelLimit and getFuelLevel
This commit is contained in:
@@ -391,8 +391,9 @@ end
|
|||||||
if type(turtle.getFuelLevel()) ~= 'number' then
|
if type(turtle.getFuelLevel()) ~= 'number' then
|
||||||
-- Support unlimited fuel
|
-- Support unlimited fuel
|
||||||
function turtle.getFuelLevel()
|
function turtle.getFuelLevel()
|
||||||
return 100000
|
return math.huge
|
||||||
end
|
end
|
||||||
|
turtle.getFuelLimit = turtle.getFuelLevel
|
||||||
end
|
end
|
||||||
|
|
||||||
-- override to optionally specify a fuel
|
-- override to optionally specify a fuel
|
||||||
|
|||||||
Reference in New Issue
Block a user