Skip to content

Commit 7a8fce2

Browse files
committed
Set mc object regex in 1.17
Fixes #1271
1 parent 9ca7c91 commit 7a8fce2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ public static String getMinecraftPackage() {
225225
if (MinecraftVersion.CAVES_CLIFFS_1.atOrAbove()) {
226226
// total rework of the NMS structure in 1.17 (at least there's no versioning)
227227
MINECRAFT_FULL_PACKAGE = MINECRAFT_PREFIX_PACKAGE = "net.minecraft";
228+
setDynamicPackageMatcher(MINECRAFT_OBJECT);
228229
} else {
229230
MINECRAFT_FULL_PACKAGE = getPackage(getHandle.getReturnType().getCanonicalName());
230231

0 commit comments

Comments
 (0)