Fix crash caused by null entities

This commit is contained in:
Esmorall 2019-12-09 13:07:32 -03:00
parent cdab67b2cf
commit 827bea0c57
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@ public class EntityTickManager extends TimerTask {
}
ewc.getToUntick().clear();
for(int i : ewc.getToTick().keySet()) {
ws.entitiesById.put(i, ewc.getToTick().get(i));
net.minecraft.server.v1_14_R1.Entity entity = ewc.getToTick().get(i);
if(entity == null) {
continue;
}
ws.entitiesById.put(i, entity);
}
ewc.getToTick().clear();
} catch (IllegalArgumentException | IllegalAccessException e) {