v2.0.0: fixed another race condition that rarely breaks emitters

This commit is contained in:
Evan Debenham
2022-12-05 15:05:28 -05:00
parent 2998f1cab7
commit 03bc987ec3

View File

@@ -89,8 +89,6 @@ public class Emitter extends Group {
public void start( Factory factory, float interval, int quantity ) {
started = true;
this.factory = factory;
this.lightMode = factory.lightMode();
@@ -101,6 +99,7 @@ public class Emitter extends Group {
time = Random.Float( interval );
on = true;
started = true;
}
public static boolean freezeEmitters = false;