1
0
mirror of https://github.com/kepler155c/opus synced 2024-06-18 11:20:01 +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

@ -6,8 +6,8 @@ local os = _G.os
local injector
if not install.testing then
_G.OPUS_BRANCH = 'develop-1.8'
local url ='https://raw.githubusercontent.com/kepler155c/opus/develop-1.8/sys/apis/injector.lua'
_G.OPUS_BRANCH = 'master-1.8'
local url ='https://raw.githubusercontent.com/kepler155c/opus/master-1.8/sys/apis/injector.lua'
injector = load(http.get(url).readAll(), 'injector.lua', nil, _ENV)()
else
injector = _G.requireInjector

View File

@ -2,7 +2,7 @@
local fs = _G.fs
local http = _G.http
_G.OPUS_BRANCH = 'develop-1.8'
_G.OPUS_BRANCH = 'master-1.8'
local GIT_REPO = 'kepler155c/opus/' .. _G.OPUS_BRANCH
local BASE = 'https://raw.githubusercontent.com/' .. GIT_REPO

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