Skip to content

Commit

Permalink
Merge pull request #26 from lonemeow/fix-server-names-truncated
Browse files Browse the repository at this point in the history
Fix server names being truncated ingame
  • Loading branch information
lonemeow authored Feb 14, 2024
2 parents fb59e74 + 00c8635 commit c76f043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client-gui/ServerInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void Write(Stream stream) {
var port = Port;

stream.Write(serverNameBuffer);
stream.WriteByte((byte)serverNameLenBytes);
stream.WriteByte((byte)serverName.Length);
stream.Write(ip);
stream.WriteByte((byte)(port >> 8));
stream.WriteByte((byte)port);
Expand Down

0 comments on commit c76f043

Please sign in to comment.