mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2025-03-02 04:01:26 +01:00
Fix error in 1.20.2
This commit is contained in:
parent
a0e2428fae
commit
dbd81538ca
@ -27,7 +27,10 @@ public class PacketListenerClientCustomPayload extends PacketAdapter {
|
|||||||
return;
|
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")) {
|
if (!event.getPacket().getMinecraftKeys().read(0).getFullKey().equals("minecraft:brand")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user