Set mc object regex in 1.17

Fixes #1271
This commit is contained in:
Dan Mulloy 2021-06-26 20:57:39 -04:00
parent 9ca7c91a76
commit 7a8fce224e
No known key found for this signature in database
GPG Key ID: 2B62F7DACFF133E8

View File

@ -225,6 +225,7 @@ public class MinecraftReflection {
if (MinecraftVersion.CAVES_CLIFFS_1.atOrAbove()) { if (MinecraftVersion.CAVES_CLIFFS_1.atOrAbove()) {
// total rework of the NMS structure in 1.17 (at least there's no versioning) // total rework of the NMS structure in 1.17 (at least there's no versioning)
MINECRAFT_FULL_PACKAGE = MINECRAFT_PREFIX_PACKAGE = "net.minecraft"; MINECRAFT_FULL_PACKAGE = MINECRAFT_PREFIX_PACKAGE = "net.minecraft";
setDynamicPackageMatcher(MINECRAFT_OBJECT);
} else { } else {
MINECRAFT_FULL_PACKAGE = getPackage(getHandle.getReturnType().getCanonicalName()); MINECRAFT_FULL_PACKAGE = getPackage(getHandle.getReturnType().getCanonicalName());