Skip to content

Commit 2d45525

Browse files
authored
fix: proxy switch handshake: send valid GetSection packet (include team byte) (#142)
Root cause: GetSectionOrRequestSync (packet 8) built with invalid length during server switch (11 instead of 12). Added missing team byte (packByte(0)) in handleWorldInfo. This prevents TShock EndOfStream in HandleGetSection and eliminates kick: Your client didn't send the right connection information. Removed temporary chat-drop workaround used during debugging.
1 parent 2e97957 commit 2d45525

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/dimensions/terrariaserverpackethandler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ class TerrariaServerPacketHandler {
300300
.setType(PacketTypes.GetSectionOrRequestSync)
301301
.packSingle(-1)
302302
.packSingle(-1)
303+
.packByte(0)
303304
.data;
304305
this.currentServer.sendDirect(getSection);
305306

0 commit comments

Comments
 (0)