Skip to content

Commit

Permalink
Only render the scroll text if the config option is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Mar 16, 2024
1 parent 94b5f2a commit 0b717a6
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,12 @@ public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float partia
}

PoseStack poseStack = guiGraphics.pose();
poseStack.pushPose();
poseStack.mulPose(Axis.ZP.rotationDegrees(90.0F));
guiGraphics.drawString(this.font, Component.translatable("armorposer.gui.label.scroll"), 21, -width + 10, 11184810, true);
poseStack.popPose();
if (Services.PLATFORM.allowScrolling()) {
poseStack.pushPose();
poseStack.mulPose(Axis.ZP.rotationDegrees(90.0F));
guiGraphics.drawString(this.font, Component.translatable("armorposer.gui.label.scroll"), 21, -width + 10, 11184810, true);
poseStack.popPose();
}
}

@Override
Expand Down

0 comments on commit 0b717a6

Please sign in to comment.