Skip to content

Commit

Permalink
Fix Translation Message Error
Browse files Browse the repository at this point in the history
Closes #5
  • Loading branch information
bundabrg committed Jul 21, 2020
1 parent 10a4f14 commit 20fc842
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void translate(ServerPlayerListEntryPacket packet, GeyserSession session)
playerEntity.setProfile(entry.getProfile());
playerEntity.setPlayerList(true);
playerEntity.setValid(true);
playerEntity.setDisplayName(entry.getDisplayName() != null ? MessageUtils.getBedrockMessage(entry.getDisplayName()) : null);
playerEntity.setDisplayName(entry.getDisplayName() != null ? MessageUtils.getTranslatedBedrockMessage(entry.getDisplayName(), session.getClientData().getLanguageCode()) : null);

PlayerListPacket.Entry playerListEntry = SkinUtils.buildCachedEntry(playerEntity);
if (self) {
Expand Down

0 comments on commit 20fc842

Please sign in to comment.