InvalidType missing texture round two!

This commit is contained in:
AlgorithmX2 2014-07-11 00:06:41 -05:00
parent 86792da253
commit 2b8cd80f32

View file

@ -201,13 +201,17 @@ public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent,
{ {
for (MaterialType mat : MaterialType.values()) 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 ) ); ItemStack what = new ItemStack( this, 1, mat.damageValue );
if ( getTypeByStack( what ) != MaterialType.InvalidType )
{
String tex = "appliedenergistics2:" + nameOf( what );
mat.IIcon = icoRegister.registerIcon( tex ); mat.IIcon = icoRegister.registerIcon( tex );
} }
} }
} }
}
@Override @Override
public boolean hasCustomEntity(ItemStack is) public boolean hasCustomEntity(ItemStack is)