SPIGOT-6065: Allow empty AttributeModifier name

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2020-08-12 16:59:56 +10:00
parent 42b72d7c63
commit e5609360b2

View File

@ -32,7 +32,7 @@ public class AttributeModifier implements ConfigurationSerializable {
public AttributeModifier(@NotNull UUID uuid, @NotNull String name, double amount, @NotNull Operation operation, @Nullable EquipmentSlot slot) {
Validate.notNull(uuid, "UUID cannot be null");
Validate.notEmpty(name, "Name cannot be empty");
Validate.notNull(name, "Name cannot be null");
Validate.notNull(operation, "Operation cannot be null");
this.uuid = uuid;
this.name = name;