From 019e8cbdd37644447bcd29571a74a212c65ef6dc Mon Sep 17 00:00:00 2001 From: sandtechnology <20417547+sandtechnology@users.noreply.github.com> Date: Sun, 18 Dec 2022 22:56:41 +0800 Subject: [PATCH] Fix #148, check if recipe is null when colliding --- .../com/meteor/extrabotany/common/items/lens/LensSmelt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/meteor/extrabotany/common/items/lens/LensSmelt.java b/src/main/java/com/meteor/extrabotany/common/items/lens/LensSmelt.java index ccb8cad3..2c059e3b 100644 --- a/src/main/java/com/meteor/extrabotany/common/items/lens/LensSmelt.java +++ b/src/main/java/com/meteor/extrabotany/common/items/lens/LensSmelt.java @@ -55,7 +55,7 @@ public boolean collideBurst(IManaBurst burst, RayTraceResult rtr, boolean isMana IRecipe irecipe = world.getRecipeManager().getRecipe(IRecipeType.SMELTING, new Inventory(new ItemStack(block)),world).orElse(null); - if(!irecipe.getRecipeOutput().isEmpty()) { + if(irecipe != null || !irecipe.getRecipeOutput().isEmpty()) { world.removeBlock(collidePos, false); if (ConfigHandler.COMMON.blockBreakParticles.get()) {