Removed color tags from fill and trim task progress logs, since color tags no longer work correctly for the console

This commit is contained in:
Brettflan 2011-09-22 08:10:49 -05:00
parent 502a4d57ff
commit acd2324388
2 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,7 @@ public class WorldFillTask implements Runnable
{
lastReport = Config.Now();
double perc = ((double)(reportTotal + reportNum) / (double)reportTarget) * 100;
sendMessage(reportNum + " more map chunks processed (" + (reportTotal + reportNum) + " total, " + ChatColor.GREEN.toString() + Config.coord.format(perc) + "%" + ChatColor.WHITE.toString() + ")");
sendMessage(reportNum + " more map chunks processed (" + (reportTotal + reportNum) + " total, " + Config.coord.format(perc) + "%" + ")");
reportTotal += reportNum;
reportNum = 0;
@ -344,7 +344,7 @@ public class WorldFillTask implements Runnable
// Due to the apparent chunk generation memory leak, we need to track memory availability
int availMem = Config.AvailableMemory();
Config.Log("[Fill] " + text + ChatColor.GOLD.toString() + " (free mem: " + availMem + " MB)");
Config.Log("[Fill] " + text + " (free mem: " + availMem + " MB)");
if (notifyPlayer != null)
notifyPlayer.sendMessage("[Fill] " + text);

View File

@ -372,7 +372,7 @@ public class WorldTrimTask implements Runnable
{
lastReport = Config.Now();
double perc = ((double)(reportTotal) / (double)reportTarget) * 100;
sendMessage(reportTrimmedRegions + " entire region(s) and " + reportTrimmedChunks + " individual chunk(s) trimmed so far (" + ChatColor.GREEN.toString() + Config.coord.format(perc) + "% done" + ChatColor.WHITE.toString() + ")");
sendMessage(reportTrimmedRegions + " entire region(s) and " + reportTrimmedChunks + " individual chunk(s) trimmed so far (" + Config.coord.format(perc) + "% done" + ")");
}
// send a message to the server console/log and possibly to an in-game player