diff --git a/src/main/java/io/github/retrooper/packetevents/utils/nms/NMSUtils.java b/src/main/java/io/github/retrooper/packetevents/utils/nms/NMSUtils.java index 08b170d48f..7b222c22be 100644 --- a/src/main/java/io/github/retrooper/packetevents/utils/nms/NMSUtils.java +++ b/src/main/java/io/github/retrooper/packetevents/utils/nms/NMSUtils.java @@ -373,7 +373,7 @@ public static void load() { } if (registryClass != null) { - getRegistryId = Reflection.getMethod(registryClass, int.class, 0); + getRegistryId = Reflection.getMethod(registryClass, "a", int.class); getRegistryById = Reflection.getMethod(registryClass, 0, int.class); }