1
0
mirror of https://github.com/kepler155c/opus synced 2025-04-18 08:43:11 +00:00

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.
This commit is contained in:
LDDestroier 2021-05-17 20:03:50 -04:00 committed by GitHub
parent ce6a741690
commit 800dd60747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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