v2.0.0: fixed another race condition that rarely breaks emitters
This commit is contained in:
@@ -89,8 +89,6 @@ public class Emitter extends Group {
|
|||||||
|
|
||||||
public void start( Factory factory, float interval, int quantity ) {
|
public void start( Factory factory, float interval, int quantity ) {
|
||||||
|
|
||||||
started = true;
|
|
||||||
|
|
||||||
this.factory = factory;
|
this.factory = factory;
|
||||||
this.lightMode = factory.lightMode();
|
this.lightMode = factory.lightMode();
|
||||||
|
|
||||||
@@ -101,6 +99,7 @@ public class Emitter extends Group {
|
|||||||
time = Random.Float( interval );
|
time = Random.Float( interval );
|
||||||
|
|
||||||
on = true;
|
on = true;
|
||||||
|
started = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean freezeEmitters = false;
|
public static boolean freezeEmitters = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user