forked from SteamWar/SteamWar
Add protocol version check to handle potential packet issue
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user