From 69483067b4ea6b81a6dcff59eb129436408bf6ea Mon Sep 17 00:00:00 2001 From: cola98765 Date: Wed, 10 Apr 2024 13:40:32 +0000 Subject: [PATCH] Made leaves color like if they are in fancy setting. Still no config, but with all other changes to colors this might fit better. --- .../wrappers/block/cache/ClientBlockStateCache.java | 10 ++++++++-- 1 file changed, 8 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 00ae43a89..a67a8260e 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 @@ -231,10 +231,16 @@ public class ClientBlockStateCache { //switch (//FIXME add config option) // case BLACK: - a = 255; //simulate black background of fast leaves + // a = 255; //simulate black background of fast leaves // break; // case IGNORE: - // continue; //same long grass + if (a == 0) { + continue; //same long grass + } + else + { + a = 255 //just in case there are semi transparent pixels + } // break; // case TRANSPARENT: // break; //do nothing, let it count towards transparency