mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 15:48:26 -04:00
Fix gamepad thread crashing when unfocused.
This commit is contained in:
parent
7b8526c929
commit
78df3709ae
@ -80,7 +80,7 @@ public class Gamepad {
|
||||
|
||||
delta--;
|
||||
try {
|
||||
sleep((long) ((1 - delta)/ticks));
|
||||
sleep(Math.max((long) ((1 - delta)/ticks), 0));
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user