fix TextComponentBase helper not being network serialisable

This commit is contained in:
Xander committed 2017-11-29 22:04:44 +08:00
1 parent 17ce49434f
commit 9e8be8e63f
1 file changed
+4 -3
@@ -1,7 +1,6 @@
package mekanism.common.util;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TextComponentBase;
import net.minecraft.util.text.TextComponentString;
import net.minecraft.util.text.TextComponentTranslation;
import net.minecraft.util.text.TextFormatting;
@@ -9,14 +8,16 @@ import net.minecraft.util.text.TextFormatting;
/**
* Created by Thiakil on 8/11/2017.
*/
public class TextComponentGroup extends TextComponentBase
public class TextComponentGroup extends TextComponentString
{
public TextComponentGroup(){
super("");
}
public TextComponentGroup(TextFormatting color)
{
super("");
getStyle().setColor(color);
}
@@ -27,7 +28,7 @@ public class TextComponentGroup extends TextComponentBase
}
@Override
public ITextComponent createCopy()
public TextComponentGroup createCopy()
{
TextComponentGroup textcomponentstring = new TextComponentGroup();
textcomponentstring.setStyle(this.getStyle().createShallowCopy());