diff --git a/common/src/main/java/gripe/_90/megacells/misc/CompressionService.java b/common/src/main/java/gripe/_90/megacells/misc/CompressionService.java index cd31b496..42ce2583 100644 --- a/common/src/main/java/gripe/_90/megacells/misc/CompressionService.java +++ b/common/src/main/java/gripe/_90/megacells/misc/CompressionService.java @@ -158,8 +158,8 @@ private boolean isCompressionRecipe(CraftingRecipe recipe, RegistryAccess access private boolean sameIngredient(CraftingRecipe recipe) { var ingredients = recipe.getIngredients(); - if (recipe instanceof ShapedRecipe) { - return ingredients.stream().distinct().count() <= 1; + if (recipe instanceof ShapedRecipe && ingredients.stream().distinct().count() <= 1) { + return true; } // Check further for any odd cases (e.g. melon blocks having a shapeless recipe instead of a shaped one)