1
0
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:
kepler155c@gmail.com
2018-03-21 13:42:29 -04:00
parent daed3aac38
commit a17677730f
3 changed files with 10 additions and 3 deletions

View File

@@ -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()