Replace infinite while loop with Thread#isAlive loop

This commit is contained in:
Ossian Winter 2021-01-27 15:40:13 +01:00
parent fb77717887
commit 30b948b916
No known key found for this signature in database
GPG Key ID: 1017BE95C68A39F9
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ public final class AnimationManager {
}
private void update() {
while (true) {
while (Thread.currentThread().isAlive()) {
long beforeAnimation = System.nanoTime();
if (this.animations.size() > 0)