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);