Skip to content

Commit

Permalink
WIP: Improve Instrument and MusicVenueTool overlays.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeronica committed Mar 9, 2024
1 parent 541da84 commit 731df15
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public boolean render(int x, int y, MatrixStack pPoseStack) {
case CENTER:
xPos = (x * 0.5F) - this.overlayItem.totalWidth() * 0.5F;
yPos = 0F - this.overlayItem.totalHeight() + ((float) this.overlayItem.totalHeight() * this.getVisibility(i));
// yPos = 0F - this.overlayItem.totalHeight() + (getMinecraft().getWindow().getGuiScaledHeight() * 0.5F + this.overlayItem.totalHeight() * 0.5F) * this.getVisibility(i);
break;
case RIGHT:
xPos = (float)x - (float)this.overlayItem.totalWidth() * this.getVisibility(i);
Expand Down

0 comments on commit 731df15

Please sign in to comment.