Skip to content

Commit

Permalink
Update InGameHudMixin.java
Browse files Browse the repository at this point in the history
  • Loading branch information
MystWraith committed Dec 13, 2023
1 parent 9ee84b6 commit ec9af45
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void renderHotbarIcons(DrawContext context, int x, int y, float f, Playe
* @param width Width of render
* @param height Height of render
*/
@Redirect(method = "renderExperienceBar",
/*@Redirect(method = "renderExperienceBar",
slice = @Slice(
from = @At(
value = "INVOKE",
Expand All @@ -88,12 +88,13 @@ private void renderHotbarIcons(DrawContext context, int x, int y, float f, Playe
),
allow = 1)
void swapIcons(DrawContext context, Identifier ICONS, int i, int j, int k, int l, int x, int y, int z, int width, DrawContext unknownContext, int height) {
if (!Pickaxe.getInstance().isInPickaxe()) {
/*if (!Pickaxe.getInstance().isInPickaxe()) {
context.drawGuiTexture(ICONS, i, j, k, l, x, y, z, width, height);
return;
}
//renderNewExperienceBar(context, k, l, x, y, z, width, height);
context.drawGuiTexture(ICONS, i, j, k, l, x, y, z, width, height);
unknownContext.drawGuiTexture(ICONS, i, j, k, l, x, y, z, width, height);
}
@Redirect(method = "renderExperienceBar",
Expand All @@ -114,7 +115,7 @@ void swapIcons(DrawContext context, Identifier ICONS, int x, int y, int width, i
}
//renderNewExperienceBar(context, 0, 0, x, y, 0, width, height);
context.drawGuiTexture(ICONS, x, y, width, height);
}
}*/

void renderNewExperienceBar(DrawContext context, int u, int v, int x, int y, int z, int width, int height) {
switch (Options.getInstance().XPBarType) {
Expand Down

0 comments on commit ec9af45

Please sign in to comment.