Added TODO

This commit is contained in:
Norbi Peti 2016-09-24 13:27:58 +02:00
parent cb91125028
commit 4a454da723

View file

@ -145,14 +145,14 @@ public final class ChatFormatter {
if (formatter.openlink != null) if (formatter.openlink != null)
openlink = formatter.openlink; openlink = formatter.openlink;
if (formatter.removecharcount != 0) { if (formatter.removecharcount != 0) {
removecharpositions.add(section.Start + formatter.removecharcount); // TODO removecharpositions.add(section.Start + formatter.removecharcount); // TODO: Do this before combining the sections
removecharpositions.add(section.End - formatter.removecharcount); removecharpositions.add(section.End - formatter.removecharcount);
} }
if (formatter.removecharpos != -1) if (formatter.removecharpos != -1)
removecharpositions.add((int) formatter.removecharpos); removecharpositions.add((int) formatter.removecharpos);
} }
TellrawPart newtp = new TellrawPart(""); TellrawPart newtp = new TellrawPart("");
StringBuilder origtextsb = new StringBuilder(originaltext); StringBuilder origtextsb = new StringBuilder(originaltext); // TODO
newtp.setText(origtextsb.toString()); newtp.setText(origtextsb.toString());
if (color != null) if (color != null)
newtp.setColor(color); newtp.setColor(color);