mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 23:03:01 +00:00
fix TextComponentBase helper not being network serialisable
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user