From 0fe017df74e129d8aef07e54b512717c7815ece7 Mon Sep 17 00:00:00 2001 From: Pierre Remacle <61838082+PierreRemacle@users.noreply.github.com> Date: Mon, 11 Dec 2023 16:05:03 +0100 Subject: [PATCH] Chisels & Bits blocks transparent --- .../wrappers/block/cache/ClientBlockStateCache.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/cache/ClientBlockStateCache.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/cache/ClientBlockStateCache.java index 9f8de4c95..5e33f3ceb 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/cache/ClientBlockStateCache.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/cache/ClientBlockStateCache.java @@ -91,11 +91,13 @@ public class ClientBlockStateCache { Default, Flower, - Leaves; + Leaves, + Chisel; static ColorMode getColorMode(Block b) { if (b instanceof LeavesBlock) return Leaves; if (b instanceof FlowerBlock) return Flower; + if (b.toString().equals("Block{chiselsandbits:chiseled}")) return Chisel; return Default; } } @@ -160,7 +162,14 @@ public class ClientBlockStateCache { scale = FLOWER_COLOR_SCALE; } - + //make Chiseled block not render + else if (colorMode == ColorMode.Chisel) + { + r = 0; + g = 0; + b = 0; + a = 0; + } count += scale; alpha += a * a * scale; red += r * r * scale;