mirror of
https://github.com/kepler155c/opus
synced 2025-10-14 23:37:40 +00:00
1.7.10 compatibility
This commit is contained in:
@@ -129,6 +129,13 @@ function turtle.getHeadingInfo(heading)
|
||||
return headings[heading]
|
||||
end
|
||||
|
||||
-- hackish way to support unlimited fuel
|
||||
if type(turtle.getFuelLevel()) ~= 'number' then
|
||||
function turtle.getFuelLevel()
|
||||
return 10000000
|
||||
end
|
||||
end
|
||||
|
||||
-- [[ Basic turtle actions ]] --
|
||||
local function inventoryAction(fn, name, qty)
|
||||
local slots = turtle.getFilledSlots()
|
||||
|
Reference in New Issue
Block a user