mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
Null check stacks for alfheim portal recipe resolver. Closes #1134
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user