From 0dda88d649ee14095587696f1400d6bdabc18964 Mon Sep 17 00:00:00 2001 From: MiGoYAm Date: Sat, 11 Dec 2021 15:04:20 +0100 Subject: [PATCH] optimize --- .../java/ru/nanit/limbo/connection/ClientConnection.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/ru/nanit/limbo/connection/ClientConnection.java b/src/main/java/ru/nanit/limbo/connection/ClientConnection.java index b745974f..faa88e53 100644 --- a/src/main/java/ru/nanit/limbo/connection/ClientConnection.java +++ b/src/main/java/ru/nanit/limbo/connection/ClientConnection.java @@ -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(); @@ -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);