SPIGOT-6065: Allow empty AttributeModifier name
By: md_5 <git@md-5.net>
This commit is contained in:
parent
42b72d7c63
commit
e5609360b2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue