From 58c74a72f407a7a6eafc92c57cc4407bbd6347b2 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 16 Apr 2022 17:42:22 +0200 Subject: [PATCH] :sparkles: TextComponentApi --- .../src/de/steamwar/message/SWTextComponent.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/message/SWTextComponent.java b/SpigotCore_Main/src/de/steamwar/message/SWTextComponent.java index 589c0d0..8473fef 100644 --- a/SpigotCore_Main/src/de/steamwar/message/SWTextComponent.java +++ b/SpigotCore_Main/src/de/steamwar/message/SWTextComponent.java @@ -37,20 +37,20 @@ public class SWTextComponent { public SWTextComponent() { this.textComponent = new TextComponent(); - this.root = this.textComponent; + this.root = new TextComponent(); } public SWTextComponent(String text) { - this.textComponent = new TextComponent(TextComponent.fromLegacyText(text)); - this.root = this.textComponent; + this.root = new TextComponent(TextComponent.fromLegacyText(text)); + this.textComponent = new TextComponent(); } public SWTextComponent(String text, Message message) { - this.textComponent = new TextComponent(TextComponent.fromLegacyText(text)); - this.root = this.textComponent; + this.root = new TextComponent(TextComponent.fromLegacyText(text)); + this.textComponent = new TextComponent(); this.message = message; } public SWTextComponent(Message message) { this.textComponent = new TextComponent(); - this.root = this.textComponent; + this.root = new TextComponent(); this.message = message; }