Don't send message if there is not untracked entities

This commit is contained in:
Esmorall 2020-07-02 11:39:30 -03:00
parent 45f26c28e9
commit 762414b495
No known key found for this signature in database
GPG Key ID: 3F4DD7CEC746EEB3
3 changed files with 9 additions and 3 deletions

View File

@ -95,7 +95,9 @@ public class UntrackerTask extends BukkitRunnable {
}
if(ConfigMain.isLogToConsole()) {
EntityTrackerFixer.plugin.getLogger().info("Untracked " + removed + " entities in " + worldName);
if(removed > 0) {
EntityTrackerFixer.plugin.getLogger().info("Untracked " + removed + " entities in " + worldName);
}
}
//System.out.println("cache now contains " + UntrackedEntitiesCache.getInstance().getCache(worldName).size() + " entities");

View File

@ -95,7 +95,9 @@ public class UntrackerTask extends BukkitRunnable {
}
if(ConfigMain.isLogToConsole()) {
EntityTrackerFixer.plugin.getLogger().info("Untracked " + removed + " entities in " + worldName);
if(removed > 0) {
EntityTrackerFixer.plugin.getLogger().info("Untracked " + removed + " entities in " + worldName);
}
}
//System.out.println("cache now contains " + UntrackedEntitiesCache.getInstance().getCache(worldName).size() + " entities");

View File

@ -99,7 +99,9 @@ public class UntrackerTask extends BukkitRunnable {
}
if(ConfigMain.isLogToConsole()) {
EntityTrackerFixer.plugin.getLogger().info("Untracked " + removed + " entities in " + worldName);
if(removed > 0) {
EntityTrackerFixer.plugin.getLogger().info("Untracked " + removed + " entities in " + worldName);
}
}
//System.out.println("cache now contains " + UntrackedEntitiesCache.getInstance().getCache(worldName).size() + " entities");