aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-11 02:50:01 +0200
committernea <nea@nea.moe>2023-06-11 02:50:01 +0200
commitdb8e3640e8f9c14b7027c9e92b810ed127391ced (patch)
treed674641d0e719fe9b83685f346d80395d71d54dc /src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt
parenta36c8f1c0eae969dcee8cf690f12d9121350212d (diff)
downloadFirmament-db8e3640e8f9c14b7027c9e92b810ed127391ced.tar.gz
Firmament-db8e3640e8f9c14b7027c9e92b810ed127391ced.tar.bz2
Firmament-db8e3640e8f9c14b7027c9e92b810ed127391ced.zip
Fix name being lowercased by HyPixel
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt b/src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt
index 2de217e..8dc606c 100644
--- a/src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt
+++ b/src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt
@@ -126,7 +126,7 @@ object SkillPage : ProfilePage {
return WBox(Axis.HORIZONTAL).also {
it.insets = Insets.ROOT_PANEL
it.add(WGridPanel().also {
- it.add(WText(Text.literal(profileViewer.account.getDisplayName())), 0, 0, 8, 1)
+ it.add(WText(Text.literal(profileViewer.account.getDisplayName(profileViewer.primaryName))), 0, 0, 8, 1)
for ((i, skill) in Skill.values().withIndex()) {
it.add(WText(Text.translatable("firmament.pv.skills.${skill.name.lowercase()}")), 0, i + 1, 4, 1)
it.add(skillBar(profileViewer, skill), 4, i + 1, 4, 1)