mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-25 17:22:02 -07:00
SPIGOT-4301: Fix more invalid enchants
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user