diff --git a/gradle.properties b/gradle.properties index 0c753eb..42e8f61 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,15 +2,15 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties - # check these on https://fabricmc.net/use or https://modmuss50.me/fabric.html - minecraft_version=1.19.4 - yarn_mappings=1.19.4+build.1 - loader_version=0.14.17 + # check these on https://fabricmc.net/develop/ + minecraft_version=1.20 + yarn_mappings=1.20+build.1 + loader_version=0.14.21 # check available versions on maven for the given minecraft version you are using - carpet_core_version=1.4.100+v230314 + carpet_core_version=1.4.112+v230608 # Mod Properties - mod_version = 1.4.100 + mod_version = 1.4.112 maven_group = carpet-autocraftingtable archives_base_name = carpet-autocraftingtable diff --git a/src/main/java/carpet_autocraftingtable/AutoCraftingTableContainer.java b/src/main/java/carpet_autocraftingtable/AutoCraftingTableContainer.java index 00845c4..b8d0b19 100644 --- a/src/main/java/carpet_autocraftingtable/AutoCraftingTableContainer.java +++ b/src/main/java/carpet_autocraftingtable/AutoCraftingTableContainer.java @@ -116,7 +116,7 @@ public ItemStack quickMove(PlayerEntity player, int index) { if( player instanceof ServerPlayerEntity && blockEntity.getLastRecipe() != null - && !blockEntity.shouldCraftRecipe(player.world, (ServerPlayerEntity) player, blockEntity.getLastRecipe()) + && !blockEntity.shouldCraftRecipe(player.getWorld(), (ServerPlayerEntity) player, blockEntity.getLastRecipe()) ) { return ItemStack.EMPTY; } @@ -179,8 +179,8 @@ protected void onTake(int amount) { @Override protected void onCrafted(ItemStack stack, int amount) { super.onCrafted(stack); // from CraftingResultsSlot onCrafted - if (amount > 0) stack.onCraft(this.player.world, this.player, amount); - if (this.inventory instanceof RecipeUnlocker) ((RecipeUnlocker)this.inventory).unlockLastRecipe(this.player); + if (amount > 0) stack.onCraft(this.player.getWorld(), this.player, amount); + if (this.inventory instanceof RecipeUnlocker) ((RecipeUnlocker)this.inventory).unlockLastRecipe(this.player, getStacks()); } @Override diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index bb74267..ef05b51 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -28,7 +28,7 @@ ], "accessWidener": "act.accesswidener", "depends": { - "minecraft": "1.19.x", + "minecraft": ">=1.20", "fabricloader": ">=0.10.0", "carpet": "*" },