Fix /spawnmob on < 1.21.5 (#6121)

Fixes #6120
This commit is contained in:
Josh Roy 2025-04-05 02:59:29 -04:00 committed by GitHub
parent 2bb44386c7
commit 84552120c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,7 @@ public final class MobCompat {
MethodHandle handle = null;
try {
handle = MethodHandles.lookup().findVirtual(COW, "setVariant", MethodType.methodType(void.class, COW_VARIANT));
} catch (NoSuchMethodException | IllegalAccessException ignored) {
} catch (final Throwable ignored) {
}
COW_VARIANT_HANDLE = handle;
}