From 50ee87fbcb037e4c9bf184d65959089f169ae449 Mon Sep 17 00:00:00 2001 From: Parker Hawke Date: Sun, 9 Apr 2023 12:38:58 -0400 Subject: [PATCH] SPIGOT-7333: Correctly handle null in ColorableArmorMeta#setColor() --- .../bukkit/craftbukkit/inventory/CraftMetaColorableArmor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaColorableArmor.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaColorableArmor.java index 43f531767..c9ada7d8e 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaColorableArmor.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaColorableArmor.java @@ -72,7 +72,7 @@ public class CraftMetaColorableArmor extends CraftMetaArmor implements Colorable @Override public void setColor(Color color) { - this.color = color; + this.color = color == null ? DEFAULT_LEATHER_COLOR : color; } boolean hasColor() {