Check for null recipe in factory input slot. Fixes
@@ -200,7 +200,7 @@ public class ContainerFactory extends ContainerMekanism<TileEntityFactory> {
MachineRecipe matchingRecipe = tileEntity.getRecipeType()
.getAnyRecipe(stack, inventorySlots.get(4).getStack(), tileEntity.gasTank.getGasType(),
tileEntity.infuseStored);
- if (matchingRecipe.recipeOutput instanceof ItemStackOutput) {
+ if (matchingRecipe != null && matchingRecipe.recipeOutput instanceof ItemStackOutput) {
return ItemStack.areItemsEqual(((ItemStackOutput) matchingRecipe.recipeOutput).output, outputSlotStack);
}
return super.isItemValid(stack);
