mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00:00
Improve Registry#getOrThrow messages
This commit is contained in:
parent
6b71a7322d
commit
30fbdbaaf7
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ public class CraftRegistry<B extends Keyed, M> implements Registry<B> {
|
|||
public B getOrThrow(@NotNull NamespacedKey namespacedKey) {
|
||||
B object = get(namespacedKey);
|
||||
|
||||
Preconditions.checkArgument(object != null, "No registry entry found for key " + namespacedKey);
|
||||
Preconditions.checkArgument(object != null, "No %s registry entry found for key %s.", minecraftRegistry.key(), namespacedKey);
|
||||
|
||||
return object;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue