Fix old versions support and addEntiy bug

This commit is contained in:
Esmorall 2020-07-02 10:42:39 -03:00
parent b59498c0e3
commit 370af0f6f7
No known key found for this signature in database
GPG Key ID: 3F4DD7CEC746EEB3
3 changed files with 5 additions and 4 deletions

View File

@ -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:

View File

@ -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;

View File

@ -44,6 +44,9 @@ public class CheckTask extends BukkitRunnable {
if(cps.playerChunkMap.trackedEntities.containsKey(nms.getId())) {
continue;
}
if(!nms.valid) {
continue;
}
trackAgain.add(nms);
}
}