AlgorithmX2
2014-05-29 11:41:47 -05:00
parent b872ae66c3
commit 3746c49d49
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -53,7 +53,10 @@ public final class AEItemStack extends AEStack<IAEItemStack> implements IAEItemS
def = new AEItemDef(); def = new AEItemDef();
def.item = is.getItem(); def.item = is.getItem();
if ( def.item == null )
throw new RuntimeException( "This ItemStack is bad, it has a null item." );
/* /*
* Prevent an Item from changing the damage value on me... Either, this or a core mod. * Prevent an Item from changing the damage value on me... Either, this or a core mod.
*/ */
+2 -1
View File
@@ -98,7 +98,8 @@ public class OreHelper
// SUMMON AE STACKS! // SUMMON AE STACKS!
for (ItemStack is : set) for (ItemStack is : set)
aeset.add( AEItemStack.create( is ) ); if ( is.getItem() != null )
aeset.add( AEItemStack.create( is ) );
} }
} }