From 38068e7a578092f5a18d20e64c3a06707550febb Mon Sep 17 00:00:00 2001 From: Kurt Thiemann Date: Tue, 5 Nov 2024 15:00:24 +0100 Subject: [PATCH] fix gold armor trims on gold armor --- src/Output/ItemStyle/ArmorItemStyleGenerator.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Output/ItemStyle/ArmorItemStyleGenerator.php b/src/Output/ItemStyle/ArmorItemStyleGenerator.php index 378e8ed..2dc4663 100644 --- a/src/Output/ItemStyle/ArmorItemStyleGenerator.php +++ b/src/Output/ItemStyle/ArmorItemStyleGenerator.php @@ -76,6 +76,9 @@ protected function createItemStyles(bool $fallbackTexture = false): array $prefix = $this->item->getGenerator()->getPrefix(); $name = substr($this->item->getLocator(), 10); $armorMaterial = explode("_", $name)[0]; + if ($armorMaterial === "golden") { + $armorMaterial = "gold"; + } $styles = [ (new PropertyListEntry($this->getCssSelector()))