mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Check for null recipe in factory input slot. Fixes #5434
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user