mirror of
https://github.com/Elecast2/EntityTrackerFixer.git
synced 2024-09-27 14:02:38 +02:00
Fix crash caused by null entities
This commit is contained in:
parent
cdab67b2cf
commit
827bea0c57
@ -66,7 +66,11 @@ public class EntityTickManager extends TimerTask {
|
|||||||
}
|
}
|
||||||
ewc.getToUntick().clear();
|
ewc.getToUntick().clear();
|
||||||
for(int i : ewc.getToTick().keySet()) {
|
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();
|
ewc.getToTick().clear();
|
||||||
} catch (IllegalArgumentException | IllegalAccessException e) {
|
} catch (IllegalArgumentException | IllegalAccessException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user