fix(cube): avoid crash with craftos-pc

This commit is contained in:
Guillaume ARM 2022-07-19 00:20:43 +02:00
parent 540a089731
commit 0ee1f9a360

View File

@ -1,4 +1,4 @@
local _VERSION = '2.2.0';
local _VERSION = '2.2.1';
local CUBE_CHANNEL = 64;
local net = require('/apis/net')();
@ -243,6 +243,11 @@ local function deployCommand()
print('|> ' .. tostring(fileTransfered) .. ' file(s) transfered on machine ' .. tostring(machineId))
rebootCommand(machineId);
-- prevent CraftOS-PC crashes
if periphemu then
os.sleep(0.5)
end
end
end