Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
MiGoYAm committed Dec 11, 2021
1 parent f1341dd commit 0dda88d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/ru/nanit/limbo/connection/ClientConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,10 @@ private boolean checkVelocityKeyIntegrity(ByteMessage buf) {
}

public static void initPackets(LimboServer server) {
final String username = server.getConfig().getPingData().getVersion();
final UUID uuid = UuidUtil.getOfflineModeUuid(username);
final UUID uuid = UuidUtil.getOfflineModeUuid("");

PacketLoginSuccess loginSuccess = new PacketLoginSuccess();
loginSuccess.setUsername(username);
loginSuccess.setUsername("");
loginSuccess.setUuid(uuid);

PacketJoinGame joinGame = new PacketJoinGame();
Expand Down Expand Up @@ -394,7 +393,7 @@ public static void initPackets(LimboServer server) {
positionAndLook.setTeleportId(ThreadLocalRandom.current().nextInt());

PacketPlayerInfo info = new PacketPlayerInfo();
info.setUsername(username);
info.setUsername("");
info.setGameMode(server.getConfig().getGameMode());
info.setUuid(uuid);

Expand Down

0 comments on commit 0dda88d

Please sign in to comment.