Fixed http://openeye.openmods.info/crashes/45620002c5dacfe15acc8e1e37187991 and friends.
This commit is contained in:
@@ -54,6 +54,9 @@ 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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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 ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user