mirror of
https://github.com/Elecast2/EntityTrackerFixer.git
synced 2024-11-22 01:45:41 +01:00
remove unnecesary check on checktask
This commit is contained in:
parent
7e31f4bab2
commit
e38f3a5a3f
@ -40,11 +40,9 @@ public class CheckTask extends BukkitRunnable {
|
||||
int d = ConfigMain.getTrackingRange();
|
||||
for(Player player : Bukkit.getWorld(worldName).getPlayers()) {
|
||||
for(Entity ent : player.getNearbyEntities(d, d, d)) {
|
||||
if(!cps.playerChunkMap.trackedEntities.containsKey(ent.getEntityId())) {
|
||||
trackAgain.add(((CraftEntity)ent).getHandle());
|
||||
if(ConfigMain.isDisableTickUntracked()) {
|
||||
EntityTickManager.getInstance().enableTicking(((CraftEntity)ent).getHandle(), worldName);
|
||||
}
|
||||
trackAgain.add(((CraftEntity)ent).getHandle());
|
||||
if(ConfigMain.isDisableTickUntracked()) {
|
||||
EntityTickManager.getInstance().enableTicking(((CraftEntity)ent).getHandle(), worldName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -40,11 +40,9 @@ public class CheckTask extends BukkitRunnable {
|
||||
int d = ConfigMain.getTrackingRange();
|
||||
for(Player player : Bukkit.getWorld(worldName).getPlayers()) {
|
||||
for(Entity ent : player.getNearbyEntities(d, d, d)) {
|
||||
if(!cps.playerChunkMap.trackedEntities.containsKey(ent.getEntityId())) {
|
||||
trackAgain.add(((CraftEntity)ent).getHandle());
|
||||
if(ConfigMain.isDisableTickUntracked()) {
|
||||
EntityTickManager.getInstance().enableTicking(((CraftEntity)ent).getHandle(), worldName);
|
||||
}
|
||||
trackAgain.add(((CraftEntity)ent).getHandle());
|
||||
if(ConfigMain.isDisableTickUntracked()) {
|
||||
EntityTickManager.getInstance().enableTicking(((CraftEntity)ent).getHandle(), worldName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user