mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 13:24:17 -07:00
@@ -284,7 +284,7 @@ public class CraftRegistry<B extends Keyed, M> implements Registry<B> {
|
|||||||
public B getOrThrow(@NotNull NamespacedKey namespacedKey) {
|
public B getOrThrow(@NotNull NamespacedKey namespacedKey) {
|
||||||
B object = get(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;
|
return object;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user