Skip to content

Commit 6967b5b

Browse files
committed
fix: miner recipe jei crash
1 parent 494544a commit 6967b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/klikli_dev/occultism/integration/jei/impl/recipes/MinerRecipeCategory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ public void draw(RecipeHolder<MinerRecipe> recipe, IRecipeSlotsView recipeSlotsV
115115
RenderSystem.enableBlend();
116116
this.overlay.draw(guiGraphics, 76, 14); //(center=84) - (width/16=8) = 76
117117
this.drawStringCentered(guiGraphics, Minecraft.getInstance().font,
118-
Component.translatable(Occultism.MODID + ".jei.miner.chance", this.chances.get(recipe)), 84, 0);
118+
Component.translatable(Occultism.MODID + ".jei.miner.chance", this.chances.get(recipe.value())), 84, 0);
119119
}
120120
}

0 commit comments

Comments
 (0)