Skip to content

Commit

Permalink
don't try to generate invalid trim overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtThiemann committed Nov 27, 2024
1 parent 2d06c97 commit 0b2fea9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Constants
"leather",
"chainmail",
"iron",
"golden",
"gold",
"diamond",
"netherite"
];
Expand Down
4 changes: 3 additions & 1 deletion src/Resource/DynamicResources/ArmorTrimModelGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ protected function initializeModels(): void
foreach (Constants::ARMOR_ITEM_TYPES as $type) {
foreach (Constants::TRIM_MATERIALS as $trimMaterial) {
$this->models[] = $type . "_trim_" . $trimMaterial;
$this->models[] = $type . "_trim_" . $trimMaterial . "_darker";
if (in_array($trimMaterial, Constants::ARMOR_MATERIALS)) {
$this->models[] = $type . "_trim_" . $trimMaterial . "_darker";
}
}
}
}
Expand Down

0 comments on commit 0b2fea9

Please sign in to comment.