From 6c3822cdaffc518105b4fd16aef5cc8e4e08ab84 Mon Sep 17 00:00:00 2001 From: piexel Date: Sun, 18 Oct 2026 22:20:41 +0200 Subject: [PATCH] Find textures for blocks whose palette entry leaves properties at their defaults Textures were looked up by the block state with only the properties the pack set, so a plain grass_block never matched its snowy=false variant and fell back to its map colour. The lookup now uses the full state. Model used: Claude Opus 5.5 --- core/src/main/java/com/volmit/iris/core/gui/BlockTextures.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/volmit/iris/core/gui/BlockTextures.java b/core/src/main/java/com/volmit/iris/core/gui/BlockTextures.java index 339cd7106..538c87d0c 100644 --- a/core/src/main/java/com/volmit/iris/core/gui/BlockTextures.java +++ b/core/src/main/java/com/volmit/iris/core/gui/BlockTextures.java @@ -72,7 +72,8 @@ final class BlockTextures { } Optional topTexture(BlockData block) { - return topTextures.computeIfAbsent(block.getAsString(true), this::resolveTopTexture); + // Blockstate files match on every property, so defaults the pack left out have to be spelled out too. + return topTextures.computeIfAbsent(block.getAsString(false), this::resolveTopTexture); } private Optional resolveTopTexture(String blockState) {