From 4e3964ffce7cf9c8447d24994db7f94c563d4b2b Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 16 Jul 2022 15:10:07 +0100 Subject: [PATCH] Armor: added clearCustomColor() --- src/item/Armor.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/item/Armor.php b/src/item/Armor.php index 8d77db8dc..25374c6a0 100644 --- a/src/item/Armor.php +++ b/src/item/Armor.php @@ -86,6 +86,12 @@ class Armor extends Durable{ return $this; } + /** @return $this */ + public function clearCustomColor() : self{ + $this->customColor = null; + return $this; + } + /** * Returns the total enchantment protection factor this armour piece offers from all applicable protection * enchantments on the item.