mirror of
https://github.com/kepler155c/opus
synced 2025-04-07 16:16:38 +00:00
socket dim / clock issue
This commit is contained in:
parent
eb799004f8
commit
880a81f655
sys/apis
@ -173,7 +173,7 @@ local function trusted(msg, port)
|
||||
local data = Crypto.decrypt(msg.t or '', pubKey)
|
||||
|
||||
--local sharedKey = modexp(pubKey, exchange.secretKey, public.primeMod)
|
||||
return data.ts and tonumber(data.ts) and math.abs(os.time() - data.ts) < 10
|
||||
return data.ts and tonumber(data.ts) and math.abs(os.time() - data.ts) < 24
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
local peripheral = _G.peripheral
|
||||
local speaker = peripheral.find('speaker')
|
||||
|
||||
local Sound = { }
|
||||
|
||||
function Sound.play(sound, vol)
|
||||
local speaker = peripheral.find('speaker')
|
||||
if speaker then
|
||||
speaker.playSound('minecraft:' .. sound, vol or 1)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user