fix crash
This commit is contained in:
parent
04940534bc
commit
cdab67b2cf
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue