mirror of
https://github.com/Elecast2/EntityTrackerFixer.git
synced 2024-11-22 01:45:41 +01:00
Fix Asynchronous getNearbyEntities
This commit is contained in:
parent
c5cc59ae7f
commit
7436048976
@ -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);
|
||||
}
|
||||
|
||||
}
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user