Make the packet type check 1.17 only
This commit is contained in:
parent
5ab0e4a45c
commit
14d6fc7257
@ -24,10 +24,12 @@ public class PacketListenerScoreboardTeam extends PacketAdapter {
|
||||
public void onPacketSending(PacketEvent event) {
|
||||
PacketContainer packet = event.getPacket();
|
||||
|
||||
int type = packet.getIntegers().read(0);
|
||||
if (NmsVersion.v1_17.isSupported()) {
|
||||
int type = packet.getIntegers().read(0);
|
||||
|
||||
if (type != 0 && type != 2) {
|
||||
return;
|
||||
if (type != 0 && type != 2) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
String name = packet.getStrings().read(0);
|
||||
|
Loading…
Reference in New Issue
Block a user