From 2cbfef45a67de58fbda0c89335a9e1117d924c55 Mon Sep 17 00:00:00 2001 From: gnembon <41132274+gnembon@users.noreply.github.com> Date: Tue, 14 Mar 2023 21:46:32 +0100 Subject: [PATCH] update to 1.19.4 --- gradle.properties | 10 +++++----- .../CraftingTableBlockEntity.java | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gradle.properties b/gradle.properties index 1cee5a3..0c753eb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use or https://modmuss50.me/fabric.html - minecraft_version=1.19.3 - yarn_mappings=1.19.3+build.3 - loader_version=0.14.11 + minecraft_version=1.19.4 + yarn_mappings=1.19.4+build.1 + loader_version=0.14.17 # check available versions on maven for the given minecraft version you are using - carpet_core_version=1.4.91+v221207 + carpet_core_version=1.4.100+v230314 # Mod Properties - mod_version = 1.4.91 + mod_version = 1.4.100 maven_group = carpet-autocraftingtable archives_base_name = carpet-autocraftingtable diff --git a/src/main/java/carpet_autocraftingtable/CraftingTableBlockEntity.java b/src/main/java/carpet_autocraftingtable/CraftingTableBlockEntity.java index 980a808..d097b3f 100644 --- a/src/main/java/carpet_autocraftingtable/CraftingTableBlockEntity.java +++ b/src/main/java/carpet_autocraftingtable/CraftingTableBlockEntity.java @@ -121,7 +121,7 @@ public ItemStack getStack(int slot) { if (slot > 0) return this.inventory.get(slot - 1); if (!output.isEmpty()) return output; Optional recipe = getCurrentRecipe(); - return recipe.map(craftingRecipe -> craftingRecipe.craft(craftingInventory)).orElse(ItemStack.EMPTY); + return recipe.map(craftingRecipe -> craftingRecipe.craft(craftingInventory, world.getRegistryManager())).orElse(ItemStack.EMPTY); } @Override @@ -207,7 +207,7 @@ private ItemStack craft() { Optional optionalRecipe = getCurrentRecipe(); if (optionalRecipe.isEmpty()) return ItemStack.EMPTY; CraftingRecipe recipe = optionalRecipe.get(); - ItemStack result = recipe.craft(craftingInventory); + ItemStack result = recipe.craft(craftingInventory, world.getRegistryManager()); DefaultedList remaining = world.getRecipeManager().getRemainingStacks(RecipeType.CRAFTING, craftingInventory, world); for (int i = 0; i < 9; i++) { ItemStack current = inventory.get(i);