Skip to content

Commit

Permalink
Important fix for usernames O_o
Browse files Browse the repository at this point in the history
  • Loading branch information
Moresteck committed Jan 6, 2024
1 parent 8fc5f79 commit 71fe808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/minecraft/server/Packet2Handshake.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void a(DataInputStream datainputstream) throws IOException {
byte[] buf = new byte[available];
datainputstream.readFully(buf, 0, available);

this.a = new String(buf, "UTF-8");
this.a = new String(buf, "UTF-8").replace(Character.toString((char)0), "");
}

public void a(DataOutputStream dataoutputstream) throws IOException {
Expand Down

0 comments on commit 71fe808

Please sign in to comment.