Changed to getUnlocalizedName2

Changed to getUnlocalizedName2 to remove the need to use substring and index of.
This commit is contained in:
WORMSS 2013-04-11 14:11:46 +02:00
parent 75dfff2dba
commit 87ee823acb

View file

@ -35,7 +35,7 @@ public abstract class BlockEE extends BlockContainer {
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister) {
blockIcon = iconRegister.registerIcon(Reference.MOD_ID.toLowerCase() + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
blockIcon = iconRegister.registerIcon(Reference.MOD_ID.toLowerCase() + ":" + this.getUnlocalizedName2()));
}
/**