Fix Asynchronous getNearbyEntities

This commit is contained in:
Esmorall 2019-09-22 12:25:01 -03:00
parent c5cc59ae7f
commit 7436048976
2 changed files with 2 additions and 8 deletions

View File

@ -43,13 +43,7 @@ public class CheckTask extends BukkitRunnable {
}
}
}
new BukkitRunnable() {
@Override
public void run() {
NMSEntityTracker.trackEntities(cps, trackAgain);
}
}.runTask(EntityTrackerFixer.plugin);
NMSEntityTracker.trackEntities(cps, trackAgain);
}
}

View File

@ -13,6 +13,6 @@ public class EntityTrackerFixer extends JavaPlugin {
plugin = this;
ConfigMain.getInstance().setup(this);
new UntrackerTask().runTaskTimer(this, ConfigMain.getUntrackTicks(), ConfigMain.getUntrackTicks());
new CheckTask().runTaskTimerAsynchronously(this, ConfigMain.getUntrackTicks() + 1, ConfigMain.getCheckFrequency());
new CheckTask().runTaskTimer(this, ConfigMain.getUntrackTicks() + 1, ConfigMain.getCheckFrequency());
}
}