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