Add protocol version check to handle potential packet issue

This commit is contained in:
2025-04-28 23:25:36 +02:00
parent f30c3b2f34
commit 1912ad52e4
@@ -148,6 +148,11 @@ public class Tablist extends ChannelInboundHandlerAdapter {
current.clear();
}
if (player.getProtocolVersion().noLessThan(ProtocolVersion.MINECRAFT_1_21_5)) {
// TODO: Misformed Packet?
return;
}
sendPacket(player, createTeamPacket);
}
}