Skip to content

Commit

Permalink
Fix hotbar item not rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed May 6, 2024
1 parent 3e82b0e commit 627b53a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ private void postPosition(ScaledResolution sr, float partialTicks, CallbackInfo
@Redirect(method = "renderTooltip", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiIngame;renderHotbarItem(IIIFLnet/minecraft/entity/player/EntityPlayer;)V"))
private void scaleItems(GuiIngame instance, int index, int xPos, int yPos, float partialTicks, EntityPlayer player) {
if (VanillaHUD.isApec()) {
renderHotbarItem(index, xPos, yPos, partialTicks, player);
return;
}
renderHotbarItem(index, (Hotbar.HotBarHud.hotbarMode ? index * 20 : 0) + 3, (Hotbar.HotBarHud.hotbarMode ? 0 : index * 20) + 3, partialTicks, player);
Expand Down

0 comments on commit 627b53a

Please sign in to comment.