Skip to content

Commit 2046ac6

Browse files
committed
Release 1.1.18 Hotfix 1
1 parent 6423bbc commit 2046ac6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

plugin/src/main/java/net/elytrium/limboapi/injection/login/LoginTasksQueue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private void finish() {
148148
));
149149
} else if (connection.getState() == StateRegistry.PLAY) {
150150
UpsertPlayerInfo.Entry playerInfoEntry = new UpsertPlayerInfo.Entry(this.player.getUniqueId());
151-
playerInfoEntry.setDisplayName(new ComponentHolder(ProtocolVersion.MAXIMUM_VERSION, gameProfile.getUsername()));
151+
playerInfoEntry.setDisplayName(new ComponentHolder(this.player.getProtocolVersion(), Component.text(gameProfile.getUsername())));
152152
playerInfoEntry.setProfile(gameProfile.getGameProfile());
153153

154154
connection.delayedWrite(new UpsertPlayerInfo(

plugin/src/main/java/net/elytrium/limboapi/server/LimboImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
import net.kyori.adventure.nbt.BinaryTagTypes;
108108
import net.kyori.adventure.nbt.CompoundBinaryTag;
109109
import net.kyori.adventure.nbt.ListBinaryTag;
110+
import net.kyori.adventure.text.Component;
110111

111112
public class LimboImpl implements Limbo {
112113

@@ -466,7 +467,7 @@ protected void preSpawn(Class<? extends LimboSessionHandler> handlerClass,
466467
);
467468
} else {
468469
UpsertPlayerInfo.Entry playerInfoEntry = new UpsertPlayerInfo.Entry(player.getUniqueId());
469-
playerInfoEntry.setDisplayName(new ComponentHolder(ProtocolVersion.MAXIMUM_VERSION, player.getUsername()));
470+
playerInfoEntry.setDisplayName(new ComponentHolder(player.getProtocolVersion(), Component.text(player.getUsername())));
470471
playerInfoEntry.setGameMode(this.gameMode);
471472
playerInfoEntry.setProfile(player.getGameProfile());
472473

0 commit comments

Comments
 (0)