Fix name being lowercased by HyPixel
This commit is contained in:
@@ -46,7 +46,8 @@ class ProfileViewer(
|
||||
source.sendError(Text.translatable("firmament.pv.noplayer", name))
|
||||
return@launch
|
||||
}
|
||||
val names = mapOf(uuid to (Routes.getPlayerNameForUUID(uuid) ?: name))
|
||||
val name = Routes.getPlayerNameForUUID(uuid) ?: name
|
||||
val names = mapOf(uuid to (name))
|
||||
val data = Routes.getAccountData(uuid)
|
||||
if (data == null) {
|
||||
source.sendError(Text.translatable("firmament.pv.noprofile", name))
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user