mirror of
https://github.com/kepler155c/opus
synced 2024-12-25 16:10: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
|
local injector
|
||||||
if not install.testing then
|
if not install.testing then
|
||||||
_G.OPUS_BRANCH = 'develop-1.8'
|
_G.OPUS_BRANCH = 'master-1.8'
|
||||||
local url ='https://raw.githubusercontent.com/kepler155c/opus/develop-1.8/sys/apis/injector.lua'
|
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)()
|
injector = load(http.get(url).readAll(), 'injector.lua', nil, _ENV)()
|
||||||
else
|
else
|
||||||
injector = _G.requireInjector
|
injector = _G.requireInjector
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
local fs = _G.fs
|
local fs = _G.fs
|
||||||
local http = _G.http
|
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 GIT_REPO = 'kepler155c/opus/' .. _G.OPUS_BRANCH
|
||||||
local BASE = 'https://raw.githubusercontent.com/' .. GIT_REPO
|
local BASE = 'https://raw.githubusercontent.com/' .. GIT_REPO
|
||||||
|
|
||||||
|
@ -129,6 +129,13 @@ function turtle.getHeadingInfo(heading)
|
|||||||
return headings[heading]
|
return headings[heading]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- hackish way to support unlimited fuel
|
||||||
|
if type(turtle.getFuelLevel()) ~= 'number' then
|
||||||
|
function turtle.getFuelLevel()
|
||||||
|
return 10000000
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- [[ Basic turtle actions ]] --
|
-- [[ Basic turtle actions ]] --
|
||||||
local function inventoryAction(fn, name, qty)
|
local function inventoryAction(fn, name, qty)
|
||||||
local slots = turtle.getFilledSlots()
|
local slots = turtle.getFilledSlots()
|
||||||
|
Loading…
Reference in New Issue
Block a user