fix jei error on datapack load
@@ -30,11 +30,11 @@ public class SCJEIPlugin implements IModPlugin
registration.addIngredientInfo(new ItemStack(SCContent.KEYPAD_CHEST.get()), VanillaTypes.ITEM, Utils.localize("gui.securitycraft:scManual.recipe." + SCContent.KEYPAD_CHEST.get().getRegistryName().getPath()));
registration.addIngredientInfo(new ItemStack(SCContent.KEYPAD_FURNACE.get()), VanillaTypes.ITEM, Utils.localize("gui.securitycraft:scManual.recipe." + SCContent.KEYPAD_FURNACE.get().getRegistryName().getPath()));
registration.addRecipes(IReinforcedBlock.VANILLA_TO_SECURITYCRAFT.entrySet().stream()
- .filter(entry -> entry.getKey().asItem() != Items.AIR)
+ .filter(entry -> entry.getKey().asItem() != Items.AIR && entry.getValue().asItem() != Items.AIR)
.map(entry -> new ReinforcerRecipe(entry.getKey(), entry.getValue()))
.toList(), VTS_ID);
registration.addRecipes(IReinforcedBlock.SECURITYCRAFT_TO_VANILLA.entrySet().stream()
- .filter(entry -> entry.getValue().asItem() != Items.AIR)
+ .filter(entry -> entry.getKey().asItem() != Items.AIR && entry.getValue().asItem() != Items.AIR)
.map(entry -> new ReinforcerRecipe(entry.getValue(), entry.getKey()))
.toList(), STV_ID);
}
