Skip to content

Commit 8455212

Browse files
authored
Fix /spawnmob on < 1.21.5 (#6121)
Fixes #6120
1 parent 2bb4438 commit 8455212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Essentials/src/main/java/com/earth2me/essentials/MobCompat.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public final class MobCompat {
4949
MethodHandle handle = null;
5050
try {
5151
handle = MethodHandles.lookup().findVirtual(COW, "setVariant", MethodType.methodType(void.class, COW_VARIANT));
52-
} catch (NoSuchMethodException | IllegalAccessException ignored) {
52+
} catch (final Throwable ignored) {
5353
}
5454
COW_VARIANT_HANDLE = handle;
5555
}

0 commit comments

Comments
 (0)