Skip to content

Commit

Permalink
fix scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Feb 14, 2024
1 parent 8e19433 commit 77a941d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ public void actuallyRender(PoseStack matrices, int y) {
itemMatrices.translate(-2, -2, 0);
itemMatrices.scale(0.85f, 0.85f, 1f);
itemMatrices.translate(x / 0.85f, y / 0.85f, 0);
RenderSystem.applyModelViewMatrix();
Minecraft.getInstance().getItemRenderer().renderGuiItem(icon, 0, 0);
itemMatrices.popPose();
RenderSystem.applyModelViewMatrix();
}

if (v0 == -1) return;
Expand Down

0 comments on commit 77a941d

Please sign in to comment.