Skip to content

Commit

Permalink
Fix IClientItemExtensions#renderHelmetOverlay never being called
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Jan 10, 2025
1 parent 71a734b commit d6e9e93
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions patches/net/minecraft/client/gui/Gui.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@
RenderSystem.disableDepthTest();
}

@@ -220,6 +_,8 @@
ItemStack itemstack = this.minecraft.player.getInventory().getArmor(3);
if (itemstack.is(Blocks.CARVED_PUMPKIN.asItem())) {
this.renderTextureOverlay(p_316735_, PUMPKIN_BLUR_LOCATION, 1.0F);
+ } else {
+ net.neoforged.neoforge.client.extensions.common.IClientItemExtensions.of(itemstack).renderHelmetOverlay(itemstack, this.minecraft.player, p_316735_.guiWidth(), p_316735_.guiHeight(), p_348538_.getGameTimeDeltaPartialTick(true));
}
}
}
@@ -262,8 +_,12 @@
}

Expand Down

0 comments on commit d6e9e93

Please sign in to comment.