Remove ChatColor usages (#7543)
This commit is contained in:
@@ -4375,20 +4375,20 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ lightengine.relight(chunks,
|
||||
+ (ChunkPos chunkPos) -> {
|
||||
+ ++relitChunks[0];
|
||||
+ sender.getBukkitEntity().sendMessage(
|
||||
+ ChatColor.BLUE + "Relit chunk " + ChatColor.DARK_AQUA + chunkPos + ChatColor.BLUE +
|
||||
+ ", progress: " + ChatColor.DARK_AQUA + (int)(Math.round(100.0 * (double)(relitChunks[0])/(double)pending[0])) + "%"
|
||||
+ );
|
||||
+ sender.getBukkitEntity().sendMessage(text().color(DARK_AQUA).append(
|
||||
+ text("Relit chunk ", BLUE), text(chunkPos.toString()),
|
||||
+ text(", progress: ", BLUE), text((int)(Math.round(100.0 * (double)(relitChunks[0])/(double)pending[0])) + "%")
|
||||
+ ));
|
||||
+ },
|
||||
+ (int totalRelit) -> {
|
||||
+ final long end = System.nanoTime();
|
||||
+ final long diff = Math.round(1.0e-6*(end - start));
|
||||
+ sender.getBukkitEntity().sendMessage(
|
||||
+ ChatColor.BLUE + "Relit " + ChatColor.DARK_AQUA + totalRelit + ChatColor.BLUE + " chunks. Took " +
|
||||
+ ChatColor.DARK_AQUA + diff + "ms"
|
||||
+ );
|
||||
+ sender.getBukkitEntity().sendMessage(text().color(DARK_AQUA).append(
|
||||
+ text("Relit ", BLUE), text(totalRelit),
|
||||
+ text(" chunks. Took ", BLUE), text(diff + "ms")
|
||||
+ ));
|
||||
+ });
|
||||
+ sender.getBukkitEntity().sendMessage(ChatColor.BLUE + "Relighting " + ChatColor.DARK_AQUA + pending[0] + ChatColor.BLUE + " chunks");
|
||||
+ sender.getBukkitEntity().sendMessage(text().color(BLUE).append(text("Relighting "), text(pending[0], DARK_AQUA), text(" chunks")));
|
||||
+ }
|
||||
+ // Paper end - rewrite light engine
|
||||
+
|
||||
|
||||
Reference in New Issue
Block a user