Fixed chat formatting - Mostly ¯\_(ツ)_/¯ #59
2 changed files with 2 additions and 3 deletions
|
@ -44,8 +44,7 @@ public class ChatProcessing {
|
||||||
|
|
||||||
private static ArrayList<ChatFormatter> commonFormatters = new ArrayList<>();
|
private static ArrayList<ChatFormatter> commonFormatters = new ArrayList<>();
|
||||||
|
|
||||||
public static final ChatFormatter ESCAPE_FORMATTER = new ChatFormatterBuilder().setRegex(ESCAPE_PATTERN)
|
public static final ChatFormatter ESCAPE_FORMATTER = new ChatFormatterBuilder().setRegex(ESCAPE_PATTERN).build();
|
||||||
.setRemoveCharPos((short) 0).build();
|
|
||||||
|
|
||||||
private ChatProcessing() {
|
private ChatProcessing() {
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@ public final class ChatFormatter {
|
||||||
combined.add(section);
|
combined.add(section);
|
||||||
DebugCommand.SendDebugMessage("Added " + (!escaped ? "not " : "") + "escaped section: " + section);
|
DebugCommand.SendDebugMessage("Added " + (!escaped ? "not " : "") + "escaped section: " + section);
|
||||||
continue;
|
continue;
|
||||||
} // TODO: Actually combine overlapping sections
|
}
|
||||||
if (!escaped) {
|
if (!escaped) {
|
||||||
if (nextSection.containsKey(section.Formatters.get(0))) {
|
if (nextSection.containsKey(section.Formatters.get(0))) {
|
||||||
FormattedSection s = nextSection.remove(section.Formatters.get(0));
|
FormattedSection s = nextSection.remove(section.Formatters.get(0));
|
||||||
|
|
Loading…
Reference in a new issue