Merge pull request #9 from AlgorithmX2/localizationCrashFix

Color Applicator - Prevent calling client only localization method on server.
This commit is contained in:
thatsIch 2014-09-27 12:06:10 +02:00
commit 6c0b59fcb3

View file

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