Fix old versions support and addEntiy bug
This commit is contained in:
parent
b59498c0e3
commit
370af0f6f7
|
@ -1,7 +1,7 @@
|
|||
name: EntityTrackerFixer
|
||||
main: net.minemora.entitytrackerfixer.EntityTrackerFixer
|
||||
version: 1.2.5
|
||||
api-version: 1.16
|
||||
version: 1.2.6
|
||||
api-version: 1.14
|
||||
author: Esmorall
|
||||
description: Untrack entities that are not used at all by the server.
|
||||
commands:
|
|
@ -38,8 +38,6 @@ public class UntrackerTask extends BukkitRunnable {
|
|||
@Override
|
||||
public void run() {
|
||||
if(MinecraftServer.getServer().recentTps[0] > ConfigMain.getMinTps()) {
|
||||
//String tps = String.format("%.2f", MinecraftServer.getServer().recentTps[0]);
|
||||
//EntityTrackerFixer.plugin.getLogger().info("Not untraking because tps = " + tps);
|
||||
return;
|
||||
}
|
||||
running = true;
|
||||
|
|
|
@ -44,6 +44,9 @@ public class CheckTask extends BukkitRunnable {
|
|||
if(cps.playerChunkMap.trackedEntities.containsKey(nms.getId())) {
|
||||
continue;
|
||||
}
|
||||
if(!nms.valid) {
|
||||
continue;
|
||||
}
|
||||
trackAgain.add(nms);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue