bukkit: Fix typo in MinecraftArgumentTypes

This commit is contained in:
Jason Penilla 2021-06-25 16:14:35 -07:00 committed by Jason
parent e5f55145b1
commit b163dce3c1
2 changed files with 6 additions and 2 deletions

View file

@ -86,7 +86,11 @@ public final class CraftBukkitReflection {
return nmsClass; return nmsClass;
} }
return firstNonNullOrThrow( return firstNonNullOrThrow(
() -> "Couldn't find a class! NMS: '%s' or '%s'.", () -> String.format(
"Cound't find the NMS class '%s', or any of the following fallbacks: %s",
nms,
Arrays.toString(classNames)
),
Arrays.stream(classNames) Arrays.stream(classNames)
.map(CraftBukkitReflection::findClass) .map(CraftBukkitReflection::findClass)
.toArray(Class[]::new) .toArray(Class[]::new)

View file

@ -85,7 +85,7 @@ public final class MinecraftArgumentTypes {
); );
argumentRegistry = CraftBukkitReflection.needNMSClassOrElse( argumentRegistry = CraftBukkitReflection.needNMSClassOrElse(
"ArgumentRegistry", "ArgumentRegistry",
"commands.synchronization.ArgumentRegistry" "net.minecraft.commands.synchronization.ArgumentRegistry"
); );
} }