Commits

md_5 authored b2e0ded3ded
SPIGOT-6065: Allow empty AttributeModifier name
No tags

src/main/java/org/bukkit/attribute/AttributeModifier.java

Modified
25 25 public AttributeModifier(@NotNull String name, double amount, @NotNull Operation operation) {
26 26 this(UUID.randomUUID(), name, amount, operation);
27 27 }
28 28
29 29 public AttributeModifier(@NotNull UUID uuid, @NotNull String name, double amount, @NotNull Operation operation) {
30 30 this(uuid, name, amount, operation, null);
31 31 }
32 32
33 33 public AttributeModifier(@NotNull UUID uuid, @NotNull String name, double amount, @NotNull Operation operation, @Nullable EquipmentSlot slot) {
34 34 Validate.notNull(uuid, "UUID cannot be null");
35 - Validate.notEmpty(name, "Name cannot be empty");
35 + Validate.notNull(name, "Name cannot be null");
36 36 Validate.notNull(operation, "Operation cannot be null");
37 37 this.uuid = uuid;
38 38 this.name = name;
39 39 this.amount = amount;
40 40 this.operation = operation;
41 41 this.slot = slot;
42 42 }
43 43
44 44 /**
45 45 * Get the unique ID for this modifier.

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut