Check for null recipe in factory input slot. Fixes #5434

This commit is contained in:
Thiakil committed 2019-04-26 19:34:02 +08:00
1 parent 10a7be5f12
commit f6d3d742e8
1 file changed
+1 -1
@@ -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);