mirror of
https://github.com/kepler155c/opus
synced 2025-01-12 16:51:05 +00:00
web run applications
This commit is contained in:
parent
9f5c58cc4c
commit
e821241cfe
@ -17,11 +17,11 @@ local Util = require('util')
|
|||||||
|
|
||||||
local ChestProvider = require('chestProvider')
|
local ChestProvider = require('chestProvider')
|
||||||
if Util.getVersion() == 1.8 then
|
if Util.getVersion() == 1.8 then
|
||||||
ChestProvider = require('chestProvider18')
|
ChestProvider = require('chestProvider18')
|
||||||
end
|
end
|
||||||
|
|
||||||
if not turtle.point then
|
if not _G.device then
|
||||||
local Opus = require('opus')
|
local Opus = require('opus')
|
||||||
Opus.loadExtensions()
|
Opus.loadExtensions()
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -498,7 +498,7 @@ function Builder:refuel()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Builder:inAirDropoff()
|
function Builder:inAirDropoff()
|
||||||
if not device.wireless_modem then
|
if not device.wireless_modem then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -632,10 +632,12 @@ end
|
|||||||
|
|
||||||
function Builder:sendSupplyRequest(lastBlock)
|
function Builder:sendSupplyRequest(lastBlock)
|
||||||
|
|
||||||
local slots = self:getAirResupplyList(lastBlock)
|
if device.wireless_modem then
|
||||||
self.slotUid = os.clock()
|
local slots = self:getAirResupplyList(lastBlock)
|
||||||
|
self.slotUid = os.clock()
|
||||||
|
|
||||||
Message.broadcast('supplyList', { uid = self.slotUid, slots = slots })
|
Message.broadcast('supplyList', { uid = self.slotUid, slots = slots })
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Builder:resupply()
|
function Builder:resupply()
|
||||||
|
Loading…
Reference in New Issue
Block a user