From 71ba627b2103f67a42af38e74519cf30cddc2a33 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 7 Aug 2013 04:05:56 -0500 Subject: [PATCH] Fix missed diff for chat packets. Fixes BUKKIT-4666 This commit removes chat wrapping. It is no longer needed, as clients properly render lines with line breaks. This commit also changes an outgoing chat message to use the vanilla behavior for indicating a client cannot chat with commands-only setting. By: Wesley Wolfe --- .../org/bukkit/craftbukkit/TextWrapper.java | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 paper-server/src/main/java/org/bukkit/craftbukkit/TextWrapper.java diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/TextWrapper.java b/paper-server/src/main/java/org/bukkit/craftbukkit/TextWrapper.java deleted file mode 100644 index 8c748205e4..0000000000 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/TextWrapper.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.bukkit.craftbukkit; - -import java.util.ArrayList; -import java.util.List; -import org.bukkit.ChatColor; - -public class TextWrapper { - public static List wrapText(final String text) { - ArrayList output = new ArrayList(); - String[] lines = text.split("\n"); - String lastColor = null; - - for (String line : lines) { - if (lastColor != null) { - line = lastColor + line; - } - - output.add(line); - lastColor = ChatColor.getLastColors(line); - } - - return output; - } -}