Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
melontini committed Nov 3, 2023
1 parent 2dd9d27 commit 6de449c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
version: ${{ env.VERSION_PLAIN }}

game-versions: |
1.20.1
1.20.2
loaders: |
fabric
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
loader_version=0.14.22
# Mod Properties
mod_version=0.11.0-1.20.1
mod_version=0.11.0-1.20.2
maven_group=me.melontini
archives_base_name=recipe-book-is-pain

dark_matter=f68de8d00f
owo_version=0.11.1+1.20
dark_matter=11946be2f4
owo_version=0.11.3+1.20.2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemGroups;
import net.minecraft.item.ItemStack;
import net.minecraft.recipe.Recipe;
import net.minecraft.recipe.RecipeEntry;
import net.minecraft.recipe.RecipeType;
import net.minecraft.registry.Registries;
import net.minecraft.util.Identifier;
Expand Down Expand Up @@ -62,9 +62,9 @@ public class ClientRecipeBookMixin {
}

@Inject(at = @At("HEAD"), method = "getGroupForRecipe", cancellable = true)
private static void rbip$getGroupForRecipe(Recipe<?> recipe, CallbackInfoReturnable<RecipeBookGroup> cir) {
if (RecipeType.CRAFTING.equals(recipe.getType())) {
ItemStack itemStack = recipe.getOutput(MinecraftClient.getInstance().getNetworkHandler().getRegistryManager());
private static void rbip$getGroupForRecipe(RecipeEntry<?> recipe, CallbackInfoReturnable<RecipeBookGroup> cir) {
if (RecipeType.CRAFTING.equals(recipe.value().getType())) {
ItemStack itemStack = recipe.value().getResult(MinecraftClient.getInstance().getNetworkHandler().getRegistryManager());
Optional.ofNullable(((ItemAccess) itemStack.getItem()).rbip$getPossibleGroup())
.filter(group -> group.getType() != ItemGroup.Type.INVENTORY && group.getType() != ItemGroup.Type.HOTBAR && group.getType() != ItemGroup.Type.SEARCH)
.map(RecipeBookIsPain::toRecipeBookGroup)
Expand Down

0 comments on commit 6de449c

Please sign in to comment.