mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Improve Registry#getOrThrow messages
By: md_5 <git@md-5.net>
This commit is contained in:
parent
eb72b9d8a3
commit
0278929667
@ -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…
Reference in New Issue
Block a user