diff --git a/items/materials/ItemMultiMaterial.java b/items/materials/ItemMultiMaterial.java index e71b0ce6..941dff77 100644 --- a/items/materials/ItemMultiMaterial.java +++ b/items/materials/ItemMultiMaterial.java @@ -201,10 +201,14 @@ public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent, { for (MaterialType mat : MaterialType.values()) { - if ( mat.damageValue != -1 && mat != MaterialType.InvalidType ) + if ( mat.damageValue != -1 ) { - String tex = "appliedenergistics2:" + nameOf( new ItemStack( this, 1, mat.damageValue ) ); - mat.IIcon = icoRegister.registerIcon( tex ); + ItemStack what = new ItemStack( this, 1, mat.damageValue ); + if ( getTypeByStack( what ) != MaterialType.InvalidType ) + { + String tex = "appliedenergistics2:" + nameOf( what ); + mat.IIcon = icoRegister.registerIcon( tex ); + } } } }