From 0ee1f9a360b75fdb665a7ee0ae842a89f0a0ab3a Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Tue, 19 Jul 2022 00:20:43 +0200 Subject: [PATCH] fix(cube): avoid crash with craftos-pc --- programs/cube.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/programs/cube.lua b/programs/cube.lua index fc95682..69db858 100644 --- a/programs/cube.lua +++ b/programs/cube.lua @@ -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