fix(cube): avoid crash with craftos-pc
This commit is contained in:
parent
540a089731
commit
0ee1f9a360
@ -1,4 +1,4 @@
|
|||||||
local _VERSION = '2.2.0';
|
local _VERSION = '2.2.1';
|
||||||
local CUBE_CHANNEL = 64;
|
local CUBE_CHANNEL = 64;
|
||||||
|
|
||||||
local net = require('/apis/net')();
|
local net = require('/apis/net')();
|
||||||
@ -243,6 +243,11 @@ local function deployCommand()
|
|||||||
print('|> ' .. tostring(fileTransfered) .. ' file(s) transfered on machine ' .. tostring(machineId))
|
print('|> ' .. tostring(fileTransfered) .. ' file(s) transfered on machine ' .. tostring(machineId))
|
||||||
|
|
||||||
rebootCommand(machineId);
|
rebootCommand(machineId);
|
||||||
|
|
||||||
|
-- prevent CraftOS-PC crashes
|
||||||
|
if periphemu then
|
||||||
|
os.sleep(0.5)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user