v3.3.6: added a sync check to actor processing while iterating all

This commit is contained in:
Evan Debenham
2026-02-10 13:35:34 -05:00
parent 7927af9910
commit d1d2d7d268

View File

@@ -252,6 +252,7 @@ public abstract class Actor implements Bundlable {
if (!interrupted && !Game.switchingScene()) {
float earliest = Float.MAX_VALUE;
synchronized (Actor.class) {
for (Actor actor : all) {
//some actors will always go before others if time is equal.
@@ -263,6 +264,7 @@ public abstract class Actor implements Bundlable {
}
}
}
if (current != null) {