13
0
geforkt von Mirrors/Paper

SPIGOT-4301: Fix more invalid enchants

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2018-08-26 18:48:32 +10:00
Ursprung fbec5a9647
Commit 3edc1cf4e0

Datei anzeigen

@ -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);
}