mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-12 03:59:06 +00:00
Fix NPE on update
This commit is contained in:
parent
2d63a97611
commit
d1d6091061
1 changed files with 5 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue