Always fully serialize the component. Fixes text not working without command for sign editor

This commit is contained in:
Marcel Konrad
2021-12-06 21:35:03 +01:00
parent 91d2290584
commit 08ebc96a21

View File

@@ -5,7 +5,6 @@ import javax.annotation.Nullable;
import net.minecraft.nbt.StringTag;
import net.minecraft.nbt.Tag;
import net.minecraft.network.chat.ClickEvent;
import net.minecraft.network.chat.Style;
import net.minecraft.network.chat.ClickEvent.Action;
public class SignText extends MutableTextComponent
@@ -43,15 +42,4 @@ public class SignText extends MutableTextComponent
{
return StringTag.valueOf(this.toString());
}
@Override
public String toString()
{
if(Style.EMPTY.equals(this.getStyle()) && !this.isSpecial())
{
return this.getText();
}
return super.toString();
}
}