Skip to content

Commit 0b717a6

Browse files
committed
Only render the scroll text if the config option is enabled
1 parent 94b5f2a commit 0b717a6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

common/src/main/java/com/mrbysco/armorposer/client/gui/ArmorStandScreen.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -570,10 +570,12 @@ public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float partia
570570
}
571571

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

579581
@Override

0 commit comments

Comments
 (0)