Deferred disposing to Disposable interface

This commit is contained in:
Collin Smith 2019-11-20 05:00:54 -08:00
parent 24b6a9d3ed
commit 266eca76ce

View File

@ -62,7 +62,7 @@ public class Box2DPhysicsSystem extends IntervalIteratingSystem implements Entit
public void removedFromEngine(Engine engine) {
super.removedFromEngine(engine);
engine.removeEntityListener(this);
world.dispose();
dispose();
}
@Override