mirror of
https://github.com/kepler155c/opus
synced 2024-12-24 15:40:26 +00:00
1.7.10 compatibility
This commit is contained in:
parent
daed3aac38
commit
a17677730f
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user