Fix error in 1.20.2

This commit is contained in:
libraryaddict 2023-10-26 12:32:33 +13:00
parent a0e2428fae
commit dbd81538ca

View File

@ -27,7 +27,10 @@ public class PacketListenerClientCustomPayload extends PacketAdapter {
return;
}
if (NmsVersion.v1_13.isSupported()) {
if (NmsVersion.v1_20_R2.isSupported()) {
// TODO Add support when PL 5.1.1 is available in maven
return;
} else if (NmsVersion.v1_13.isSupported()) {
if (!event.getPacket().getMinecraftKeys().read(0).getFullKey().equals("minecraft:brand")) {
return;
}