aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0472-General-ItemMeta-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0472-General-ItemMeta-fixes.patch')
-rw-r--r--patches/api/0472-General-ItemMeta-fixes.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/api/0472-General-ItemMeta-fixes.patch b/patches/api/0472-General-ItemMeta-fixes.patch
index a8eb5a99e1..5339131e31 100644
--- a/patches/api/0472-General-ItemMeta-fixes.patch
+++ b/patches/api/0472-General-ItemMeta-fixes.patch
@@ -71,3 +71,19 @@ index ff6818b6d9e0207eafdd749928f33aeac3f27191..992f39da07bafe9769effaa7dc6adc01
/**
* Checks to see if this item has a maximum amount of damage.
*
+diff --git a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
+index 1a4260b00b193b94ce4b1b2954644f4e41baff4c..5d5fcb2720b62e47d47f441032c4de02574b051a 100644
+--- a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
++++ b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
+@@ -673,8 +673,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
+
+ /**
+ * Set all {@link Attribute}s and their {@link AttributeModifier}s.
+- * To clear all currently set Attributes and AttributeModifiers use
+- * null or an empty Multimap.
++ * To clear all custom attribute modifiers, use {@code null}. To set
++ * no modifiers (which will override the default modifiers), use an
++ * empty map.
+ * If not null nor empty, this will filter all entries that are not-null
+ * and add them to the ItemStack.
+ *