Prevent calling client only localization method on server.

This commit is contained in:
AlgorithmX2 2014-09-26 20:48:32 -05:00
parent 5d57e9dff8
commit 25b09a975e

View file

@ -359,7 +359,7 @@ public class ToolColorApplicator extends AEBasePoweredItem implements IStorageCe
AEColor selected = getActiveColor( par1ItemStack ); AEColor selected = getActiveColor( par1ItemStack );
if ( selected != null ) if ( selected != null && Platform.isClient() )
extra = Platform.gui_localize( selected.unlocalizedName ); extra = Platform.gui_localize( selected.unlocalizedName );
return super.getItemStackDisplayName( par1ItemStack ) + " - " + extra; return super.getItemStackDisplayName( par1ItemStack ) + " - " + extra;