Skip to content

Commit 627b53a

Browse files
committed
Fix hotbar item not rendering
1 parent 3e82b0e commit 627b53a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/org/polyfrost/vanillahud/mixin/GuiIngameMixin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ private void postPosition(ScaledResolution sr, float partialTicks, CallbackInfo
8181
@Redirect(method = "renderTooltip", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiIngame;renderHotbarItem(IIIFLnet/minecraft/entity/player/EntityPlayer;)V"))
8282
private void scaleItems(GuiIngame instance, int index, int xPos, int yPos, float partialTicks, EntityPlayer player) {
8383
if (VanillaHUD.isApec()) {
84+
renderHotbarItem(index, xPos, yPos, partialTicks, player);
8485
return;
8586
}
8687
renderHotbarItem(index, (Hotbar.HotBarHud.hotbarMode ? index * 20 : 0) + 3, (Hotbar.HotBarHud.hotbarMode ? 0 : index * 20) + 3, partialTicks, player);

0 commit comments

Comments
 (0)