Skip to content

Commit

Permalink
Fixes texture for light gray bed in legacy versions
Browse files Browse the repository at this point in the history
  • Loading branch information
LOOHP committed Jan 6, 2025
1 parent f34f773 commit b783c98
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ public static ItemStackProcessResult processItemForRendering(ResourceManager man
tintColorProvider = new TintColorProvider.DyeTintProvider(tintIndex -> tintIndex != 1 ? -1 : overlayColor);
} else if (InteractiveChat.version.isLegacy() && icMaterial.isOneOf(Collections.singletonList("CONTAINS:bed"))) {
String colorName = icMaterial.name().replace("_BED", "").toLowerCase();
if (colorName.equalsIgnoreCase("light_gray")) {
colorName = "silver";
}
BufferedImage bedTexture = manager.getTextureManager().getTexture(ResourceRegistry.ENTITY_TEXTURE_LOCATION + "bed/" + colorName).getTexture();
providedTextures.put(ResourceRegistry.LEGACY_BED_TEXTURE_PLACEHOLDER, new GeneratedTextureResource(manager, bedTexture));
} else if (InteractiveChat.version.isNewerOrEqualTo(MCVersion.V1_9) && icMaterial.isMaterial(XMaterial.ENDER_PEARL)) {
Expand Down

0 comments on commit b783c98

Please sign in to comment.