Skip to content

Commit

Permalink
Fix alignment for Chest Profit element demo render
Browse files Browse the repository at this point in the history
  • Loading branch information
Sychic committed Apr 23, 2021
1 parent 24265b6 commit 5f0a104
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public void demoRender() {
DungeonChest chest = DungeonChest.values()[i];
String line = chest.displayText + ": §a+300M";
SmartFontRenderer.TextAlignment alignment = leftAlign ? SmartFontRenderer.TextAlignment.LEFT_RIGHT : SmartFontRenderer.TextAlignment.RIGHT_LEFT;
ScreenRenderer.fontRenderer.drawString(line, leftAlign ? this.getActualX() : this.getActualX() + getWidth(), this.getActualY() + i * ScreenRenderer.fontRenderer.FONT_HEIGHT, chest.displayColor, alignment, SmartFontRenderer.TextShadow.NORMAL);
ScreenRenderer.fontRenderer.drawString(line, leftAlign ? 0 : getWidth(), i * ScreenRenderer.fontRenderer.FONT_HEIGHT, chest.displayColor, alignment, SmartFontRenderer.TextShadow.NORMAL);
}
}

Expand Down

0 comments on commit 5f0a104

Please sign in to comment.