SPIGOT-4301: Fix more invalid enchants
Dieser Commit ist enthalten in:
Ursprung
5d0d83bb90
Commit
2a271162af
@ -9,6 +9,9 @@ public final class CraftNamespacedKey {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static NamespacedKey fromStringOrNull(String string) {
|
public static NamespacedKey fromStringOrNull(String string) {
|
||||||
|
if (string == null || string.isEmpty()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
MinecraftKey minecraft = MinecraftKey.a(string);
|
MinecraftKey minecraft = MinecraftKey.a(string);
|
||||||
return (minecraft == null) ? null : fromMinecraft(minecraft);
|
return (minecraft == null) ? null : fromMinecraft(minecraft);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren