geforkt von Mirrors/Paper
SPIGOT-4301: Fix more invalid enchants
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
fbec5a9647
Commit
3edc1cf4e0
@ -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);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren