diff --git a/library/item/item_setting/src/main/java/org/quiltmc/qsl/item/setting/mixin/recipe_remainder/RecipeManagerMixin.java b/library/item/item_setting/src/main/java/org/quiltmc/qsl/item/setting/mixin/recipe_remainder/RecipeManagerMixin.java index 3d7eb49e3e..df2345eece 100644 --- a/library/item/item_setting/src/main/java/org/quiltmc/qsl/item/setting/mixin/recipe_remainder/RecipeManagerMixin.java +++ b/library/item/item_setting/src/main/java/org/quiltmc/qsl/item/setting/mixin/recipe_remainder/RecipeManagerMixin.java @@ -27,6 +27,7 @@ import net.minecraft.inventory.Inventory; import net.minecraft.item.ItemStack; import net.minecraft.recipe.Recipe; +import net.minecraft.recipe.RecipeHolder; import net.minecraft.recipe.RecipeManager; import net.minecraft.recipe.RecipeType; import net.minecraft.util.collection.DefaultedList; @@ -37,9 +38,9 @@ @Mixin(RecipeManager.class) public class RecipeManagerMixin { @Inject(method = "getRemainingStacks", at = @At(value = "RETURN", ordinal = 0), cancellable = true, locals = LocalCapture.CAPTURE_FAILHARD) - public > void interceptGetRemainingStacks(RecipeType recipeType, C inventory, World world, CallbackInfoReturnable> cir, Optional> optionalRecipe) { + public > void interceptGetRemainingStacks(RecipeType recipeType, C inventory, World world, CallbackInfoReturnable> cir, Optional> optionalRecipe) { cir.setReturnValue( - RecipeRemainderProvider.getRemainingStacks(inventory, optionalRecipe.get(), cir.getReturnValue()) + RecipeRemainderProvider.getRemainingStacks(inventory, optionalRecipe.get().value(), cir.getReturnValue()) ); } }