From b6b98b1c00d2f4a0950c010e924461eb299b9936 Mon Sep 17 00:00:00 2001 From: Morippi Date: Wed, 24 Aug 2022 11:43:04 +0200 Subject: [PATCH] Added transparency support (still not fully working --- .../common/wrappers/block/cache/ClientBlockStateCache.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/block/cache/ClientBlockStateCache.java b/common/src/main/java/com/seibel/lod/common/wrappers/block/cache/ClientBlockStateCache.java index d68a29a37..2c2042fc4 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/block/cache/ClientBlockStateCache.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/block/cache/ClientBlockStateCache.java @@ -126,13 +126,13 @@ public class ClientBlockStateCache { (int) (Math.sqrt(blue / count)*255.)); } // TODO: Remove this when transparency is added! - double colorAlpha = ColorUtil.getAlpha(tempColor)/255.; + /*double colorAlpha = ColorUtil.getAlpha(tempColor)/255.; tempColor = ColorUtil.rgbToInt( ColorUtil.getAlpha(tempColor), (int)(ColorUtil.getRed(tempColor) * colorAlpha), (int)(ColorUtil.getGreen(tempColor) * colorAlpha), (int)(ColorUtil.getBlue(tempColor) * colorAlpha) - ); + );*/ return tempColor; } private static final Direction[] DIRECTION_ORDER = {Direction.UP, Direction.NORTH, Direction.EAST, Direction.WEST, Direction.SOUTH, Direction.DOWN};