mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
Fix parsing bug in BaseComponent (wrong coloring)
This commit is contained in:
parent
419b3e4b02
commit
60da7c5f2b
5
pom.xml
5
pom.xml
@ -87,5 +87,10 @@
|
||||
<artifactId>commons-cli</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jline</groupId>
|
||||
<artifactId>jline</artifactId>
|
||||
<version>3.17.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
@ -50,7 +50,7 @@ public class BaseComponent extends ChatComponent {
|
||||
char nextFormattingChar = iterator.current();
|
||||
iterator.next();
|
||||
RGBColor nextColor = ChatColors.getColorByFormattingChar(nextFormattingChar);
|
||||
if (nextColor != null && nextColor != color) {
|
||||
if (nextColor != null) {
|
||||
// color change, add text part
|
||||
if (currentText.length() > 0) {
|
||||
parts.add(new TextComponent(currentText.toString(), color, formattingCodes));
|
||||
|
Loading…
x
Reference in New Issue
Block a user