fix crash

This commit is contained in:
Esmorall 2019-12-09 01:16:15 -03:00
parent 04940534bc
commit cdab67b2cf
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public class EntityTickManager extends TimerTask {
static {
try {
tickingField = ReflectionUtils.getClassPrivateField(WorldServer.class, "ticking");
tickingField = ReflectionUtils.getClassPrivateField(WorldServer.class, "tickingEntities");
} catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException e) {
e.printStackTrace();
}
@ -56,6 +56,7 @@ public class EntityTickManager extends TimerTask {
try {
boolean ticking = tickingField.getBoolean(ws);
if(ticking) {
//System.out.println("ticking");
continue;
}
EntityTickWorldCache ewc = cache.get(worldName);