mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-31 20:51:47 +01:00
SPIGOT-6065: Allow empty AttributeModifier name
By: md_5 <git@md-5.net>
This commit is contained in:
parent
42b72d7c63
commit
e5609360b2
@ -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…
Reference in New Issue
Block a user