Null check stacks for alfheim portal recipe resolver. Closes #1134

This commit is contained in:
Lizbeth Rika committed 2015-07-04 17:04:52 +01:00
1 parent d636e99f0e
commit 9094320d29
1 file changed
+1 -1
@@ -212,7 +212,7 @@ public class TileAlfPortal extends TileMod {
void resolveRecipes() {
int i = 0;
for(ItemStack stack : stacksIn) {
if(stack.getItem() instanceof ILexicon) {
if(stack != null && stack.getItem() instanceof ILexicon) {
((ILexicon) stack.getItem()).unlockKnowledge(stack, BotaniaAPI.elvenKnowledge);
ItemLexicon.setForcedPage(stack, LexiconData.elvenMessage.unlocalizedName);
spawnItem(stack);