Skip to content

Commit 8b0ccce

Browse files
committed
add more info to bad-first-packet error
1 parent 36179c8 commit 8b0ccce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/denizenscript/depenizen/bungee/DepenizenConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) {
138138
packetId = tmp.readInt();
139139
currentStage = Stage.AWAIT_DATA;
140140
if (thisServer == null && packetId != MyInfoPacketIn.PACKET_ID) {
141-
fail("Invalid FIRST packet id (must be MyInfoPacket): " + packetId);
141+
fail("Invalid FIRST packet id (must be MyInfoPacket): " + packetId + ", data length thus far = " + tmp.readableBytes());
142142
return;
143143
}
144144
if (!DepenizenBungee.instance.packets.containsKey(packetId)) {

0 commit comments

Comments
 (0)