Merge pull request #316 from jedk1/master

Fix NPE on update
This commit is contained in:
OmniCypher 2015-11-30 19:25:25 -08:00
commit 407a566f0f

View file

@ -102,7 +102,11 @@ public class HorizontalVelocityTracker {
public static void updateAll() {
for (Entity e : instances.keySet())
instances.get(e).update();
if (e != null) {
instances.get(e).update();
} else {
instances.remove(e);
}
}
public void remove() {