Tests parts before adding them.

Proxied IC2 Events.
This commit is contained in:
AlgorithmX2
2014-01-28 14:08:51 -06:00
parent f1aeca203d
commit 1a95fb5b0e
4 changed files with 31 additions and 15 deletions
+4 -2
View File
@@ -177,7 +177,8 @@ public class Registration
if ( varients == null )
{
ItemStack is = ((ItemPart) partItem.item()).createPart( type, null );
f.set( parts, new DamagedItemDefinition( is ) );
if ( is != null )
f.set( parts, new DamagedItemDefinition( is ) );
}
else
{
@@ -188,7 +189,8 @@ public class Registration
for (Enum v : varients)
{
ItemStack is = ((ItemPart) partItem.item()).createPart( type, v );
def.add( (AEColor) v, is );
if ( is != null )
def.add( (AEColor) v, is );
}
f.set( parts, def );