mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-4301: Fix more invalid enchants
By: md_5 <git@md-5.net>
This commit is contained in:
parent
fbec5a9647
commit
3edc1cf4e0
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,9 @@ public final class CraftNamespacedKey {
|
|||
}
|
||||
|
||||
public static NamespacedKey fromStringOrNull(String string) {
|
||||
if (string == null || string.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
MinecraftKey minecraft = MinecraftKey.a(string);
|
||||
return (minecraft == null) ? null : fromMinecraft(minecraft);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue