From 5608db9c56a0284f72a3732d7e369348fdd0a4ce Mon Sep 17 00:00:00 2001 From: ada_aster Date: Wed, 17 Dec 2025 22:12:15 -0500 Subject: [PATCH] Slab Block Color Fix --- .../block/ClientBlockStateColorCache.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/ClientBlockStateColorCache.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/ClientBlockStateColorCache.java index 9c041dba1..09edf4f55 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/ClientBlockStateColorCache.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/ClientBlockStateColorCache.java @@ -286,24 +286,24 @@ public class ClientBlockStateColorCache { effectiveBlockState = this.blockState.setValue( SlabBlock.TYPE, SlabType.DOUBLE ); } - - #if MC_VER < MC_1_21_5 + + #if MC_VER < MC_1_21_5 quads = Minecraft.getInstance().getModelManager().getBlockModelShaper(). getBlockModel(effectiveBlockState).getQuads(effectiveBlockState, direction, RANDOM); - #else - List blockModelPartList = Minecraft.getInstance().getModelManager().getBlockModelShaper(). - getBlockModel(effectiveBlockState).collectParts(RANDOM); + #else + List blockModelPartList = Minecraft.getInstance().getModelManager().getBlockModelShaper(). + getBlockModel(effectiveBlockState).collectParts(RANDOM); - quads = new ArrayList<>(); - if (blockModelPartList != null) - { - for (int i = 0; i < blockModelPartList.size(); i++) - { - // if direction is null this will return the unculled quads - quads.addAll(blockModelPartList.get(i).getQuads(direction)); - } - } - #endif + quads = new ArrayList<>(); + if (blockModelPartList != null) + { + for (int i = 0; i < blockModelPartList.size(); i++) + { + // if direction is null this will return the unculled quads + quads.addAll(blockModelPartList.get(i).getQuads(direction)); + } + } + #endif return quads; }