From e5609360b26d2583bbc8cb97f62e36f47049ea1b Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 12 Aug 2020 16:59:56 +1000 Subject: [PATCH] SPIGOT-6065: Allow empty AttributeModifier name By: md_5 --- .../src/main/java/org/bukkit/attribute/AttributeModifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/attribute/AttributeModifier.java b/paper-api/src/main/java/org/bukkit/attribute/AttributeModifier.java index a976314745..ff8f1231f3 100644 --- a/paper-api/src/main/java/org/bukkit/attribute/AttributeModifier.java +++ b/paper-api/src/main/java/org/bukkit/attribute/AttributeModifier.java @@ -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;