mirror of
https://github.com/kepler155c/opus
synced 2024-12-26 00:20:26 +00:00
web run applications
This commit is contained in:
parent
9f5c58cc4c
commit
e821241cfe
@ -20,7 +20,7 @@ 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
|
||||||
@ -632,11 +632,13 @@ end
|
|||||||
|
|
||||||
function Builder:sendSupplyRequest(lastBlock)
|
function Builder:sendSupplyRequest(lastBlock)
|
||||||
|
|
||||||
|
if device.wireless_modem then
|
||||||
local slots = self:getAirResupplyList(lastBlock)
|
local slots = self:getAirResupplyList(lastBlock)
|
||||||
self.slotUid = os.clock()
|
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