From 800dd60747a258564e0e3e862e779e7f90bf8b1d Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Mon, 17 May 2021 20:03:50 -0400 Subject: [PATCH] Change sleep(0) to sleep(0.05) for CraftOS-PC CraftOS-PC handles sleep(0) by not sleeping at all, which makes icon animations go too fast to actually see. Changing this will fix animations in CraftOS-PC, while not changing how it acts in other (more accurate) emulators. --- sys/modules/opus/ui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/modules/opus/ui.lua b/sys/modules/opus/ui.lua index 8451e1d..42f28e1 100644 --- a/sys/modules/opus/ui.lua +++ b/sys/modules/opus/ui.lua @@ -1066,7 +1066,7 @@ function UI.Device:runTransitions(transitions) if Util.empty(transitions) then break end - os.sleep(0) + os.sleep(0.05) end end