From cdc326e36c6093db2000b9181741a8ba48949354 Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Fri, 17 Apr 2020 21:42:39 +0100 Subject: [PATCH] Remove the none spell from scroll recipes in JEI --- .../integration/jei/ArcaneWorkbenchRecipeCategory.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/electroblob/wizardry/integration/jei/ArcaneWorkbenchRecipeCategory.java b/src/main/java/electroblob/wizardry/integration/jei/ArcaneWorkbenchRecipeCategory.java index ad5896b8..012c8188 100644 --- a/src/main/java/electroblob/wizardry/integration/jei/ArcaneWorkbenchRecipeCategory.java +++ b/src/main/java/electroblob/wizardry/integration/jei/ArcaneWorkbenchRecipeCategory.java @@ -6,6 +6,7 @@ import electroblob.wizardry.constants.Constants; import electroblob.wizardry.constants.Element; import electroblob.wizardry.inventory.ContainerArcaneWorkbench; import electroblob.wizardry.item.*; +import electroblob.wizardry.registry.Spells; import electroblob.wizardry.registry.WizardryItems; import electroblob.wizardry.registry.WizardryRecipes; import electroblob.wizardry.spell.Spell; @@ -251,6 +252,9 @@ public class ArcaneWorkbenchRecipeCategory implements IRecipeCategory scrolls = Streams.stream(Item.REGISTRY).filter(i -> i instanceof ItemScroll).collect(Collectors.toList()); for(Spell spell : Spell.getAllSpells()){ + + if(spell == Spells.none) continue; + for(Item spellBook : spellBooks){ for(Item scroll : scrolls){ if(spell.applicableForItem(spellBook) && spell.applicableForItem(scroll)){