File tree Expand file tree Collapse file tree
src/main/java/github/kasuminova/novaeng/common/item Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131import net .minecraft .util .*;
3232import net .minecraft .util .math .BlockPos ;
3333import net .minecraft .world .World ;
34+ import net .minecraftforge .fml .common .FMLCommonHandler ;
3435import net .minecraftforge .fml .common .Loader ;
3536import net .minecraftforge .fml .common .Optional ;
3637import net .minecraftforge .fml .common .network .IGuiHandler ;
@@ -146,10 +147,14 @@ public boolean canHandle(ItemStack is) {
146147 @ Nonnull
147148 @ Override
148149 public String getItemStackDisplayName (@ Nonnull ItemStack stack ) {
149- if (stack .getTagCompound () != null ) {
150- return (I18n .format (this .getUnlocalizedNameInefficiently (stack ) + ".name" ).trim () + AllWireless (stack .getTagCompound ().getInteger ("mode" ))).trim ();
150+ if (FMLCommonHandler .instance ().getEffectiveSide ().isClient ()) {
151+ if (stack .getTagCompound () != null ) {
152+ return (I18n .format (this .getUnlocalizedNameInefficiently (stack ) + ".name" ).trim () + AllWireless (stack .getTagCompound ().getInteger ("mode" ))).trim ();
153+ } else {
154+ return super .getItemStackDisplayName (stack );
155+ }
151156 } else {
152- return super . getItemStackDisplayName ( stack ) ;
157+ return "" ;
153158 }
154159 }
155160
You can’t perform that action at this time.
0 commit comments