From b783c98ad40b615b5bb9ed925ca512a42e7122c9 Mon Sep 17 00:00:00 2001 From: LOOHP Date: Mon, 6 Jan 2025 22:28:58 +0000 Subject: [PATCH] Fixes texture for light gray bed in legacy versions #71 --- .../interactivechatdiscordsrvaddon/utils/ItemRenderUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/main/java/com/loohp/interactivechatdiscordsrvaddon/utils/ItemRenderUtils.java b/common/src/main/java/com/loohp/interactivechatdiscordsrvaddon/utils/ItemRenderUtils.java index 28c9b400..c13b0f9a 100644 --- a/common/src/main/java/com/loohp/interactivechatdiscordsrvaddon/utils/ItemRenderUtils.java +++ b/common/src/main/java/com/loohp/interactivechatdiscordsrvaddon/utils/ItemRenderUtils.java @@ -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)) {