diff --git a/common/src/main/java/dev/latvian/mods/kubejs/recipe/JsonRecipeJS.java b/common/src/main/java/dev/latvian/mods/kubejs/recipe/JsonRecipeJS.java index 395937320..ef42c35ac 100644 --- a/common/src/main/java/dev/latvian/mods/kubejs/recipe/JsonRecipeJS.java +++ b/common/src/main/java/dev/latvian/mods/kubejs/recipe/JsonRecipeJS.java @@ -4,7 +4,6 @@ import dev.latvian.mods.kubejs.util.UtilsJS; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.crafting.Ingredient; -import net.minecraft.world.item.crafting.Recipe; public class JsonRecipeJS extends RecipeJS { @Override @@ -37,7 +36,7 @@ public boolean replaceInput(ReplacementMatch match, InputReplacement with) { @SuppressWarnings("ConstantValue") public boolean hasOutput(ReplacementMatch match) { if (CommonProperties.get().matchJsonRecipes && match instanceof ItemMatch m && getOriginalRecipe() != null) { - var result = ((Recipe) this).getResultItem(UtilsJS.staticRegistryAccess); + var result = getOriginalRecipe().getResultItem(UtilsJS.staticRegistryAccess); return result != null && result != ItemStack.EMPTY && !result.isEmpty() && m.contains(result); }