Skip to content

Commit

Permalink
fix gold armor trims on gold armor
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtThiemann committed Nov 5, 2024
1 parent 6165855 commit 38068e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Output/ItemStyle/ArmorItemStyleGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 38068e7

Please sign in to comment.