From 441e9a4eafcc67a49b3a159d5a376e2ac0792d6b Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 13 Apr 2017 23:23:16 +0200 Subject: [PATCH] Added some comments --- src/main/java/buttondevteam/chat/formatting/ChatFormatter.java | 2 +- .../java/buttondevteam/chat/formatting/FormattedSection.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/buttondevteam/chat/formatting/ChatFormatter.java b/src/main/java/buttondevteam/chat/formatting/ChatFormatter.java index ce58598..e7d587a 100644 --- a/src/main/java/buttondevteam/chat/formatting/ChatFormatter.java +++ b/src/main/java/buttondevteam/chat/formatting/ChatFormatter.java @@ -84,7 +84,7 @@ public final class ChatFormatter { s.End = section.Start; s.IsRange = false; // IsRange means it's a 1 long section indicating a start or an end combined.add(s); - DebugCommand.SendDebugMessage("Finished section: " + s); + DebugCommand.SendDebugMessage("Finished section: " + s); //TODO: Remove smaller sections from IsRange sections } else { DebugCommand.SendDebugMessage("Adding next section: " + section); nextSection.put(section.Formatters.get(0), section); diff --git a/src/main/java/buttondevteam/chat/formatting/FormattedSection.java b/src/main/java/buttondevteam/chat/formatting/FormattedSection.java index 2891d21..67aa64e 100644 --- a/src/main/java/buttondevteam/chat/formatting/FormattedSection.java +++ b/src/main/java/buttondevteam/chat/formatting/FormattedSection.java @@ -11,6 +11,9 @@ class FormattedSection { short RemCharFromStart; short RemCharFromEnd; ArrayList RemCharPos = new ArrayList(); + /** + * Is it a 1-long section indicating a start or an end + */ boolean IsRange; FormattedSection(ChatFormatter formatter, int start, int end, ArrayList matches, short remcharfromstart,