Always fully serialize the component. Fixes text not working without command for sign editor
This commit is contained in:
@@ -5,7 +5,6 @@ import javax.annotation.Nullable;
|
|||||||
import net.minecraft.nbt.StringTag;
|
import net.minecraft.nbt.StringTag;
|
||||||
import net.minecraft.nbt.Tag;
|
import net.minecraft.nbt.Tag;
|
||||||
import net.minecraft.network.chat.ClickEvent;
|
import net.minecraft.network.chat.ClickEvent;
|
||||||
import net.minecraft.network.chat.Style;
|
|
||||||
import net.minecraft.network.chat.ClickEvent.Action;
|
import net.minecraft.network.chat.ClickEvent.Action;
|
||||||
|
|
||||||
public class SignText extends MutableTextComponent
|
public class SignText extends MutableTextComponent
|
||||||
@@ -43,15 +42,4 @@ public class SignText extends MutableTextComponent
|
|||||||
{
|
{
|
||||||
return StringTag.valueOf(this.toString());
|
return StringTag.valueOf(this.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
if(Style.EMPTY.equals(this.getStyle()) && !this.isSpecial())
|
|
||||||
{
|
|
||||||
return this.getText();
|
|
||||||
}
|
|
||||||
|
|
||||||
return super.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user