Don't send message if there is not untracked entities
This commit is contained in:
parent
45f26c28e9
commit
762414b495
|
@ -95,7 +95,9 @@ public class UntrackerTask extends BukkitRunnable {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ConfigMain.isLogToConsole()) {
|
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");
|
//System.out.println("cache now contains " + UntrackedEntitiesCache.getInstance().getCache(worldName).size() + " entities");
|
||||||
|
|
|
@ -95,7 +95,9 @@ public class UntrackerTask extends BukkitRunnable {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ConfigMain.isLogToConsole()) {
|
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");
|
//System.out.println("cache now contains " + UntrackedEntitiesCache.getInstance().getCache(worldName).size() + " entities");
|
||||||
|
|
|
@ -99,7 +99,9 @@ public class UntrackerTask extends BukkitRunnable {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ConfigMain.isLogToConsole()) {
|
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");
|
//System.out.println("cache now contains " + UntrackedEntitiesCache.getInstance().getCache(worldName).size() + " entities");
|
||||||
|
|
Loading…
Reference in New Issue