From 07453b7fc54455959b5623c941798fdee061cb55 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 9 Apr 2023 12:38:58 -0400 Subject: [PATCH] SPIGOT-7333: Correctly handle null in ColorableArmorMeta#setColor() By: Parker Hawke --- .../bukkit/craftbukkit/inventory/CraftMetaColorableArmor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaColorableArmor.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaColorableArmor.java index 43f5317677..c9ada7d8e6 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaColorableArmor.java +++ b/paper-server/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() {