From aeb2e31a6ec611a0cd9ac2b8e22cee74b122642e Mon Sep 17 00:00:00 2001 From: cola98765 Date: Fri, 24 Dec 2021 13:07:48 +0100 Subject: [PATCH] potential fix to cherry leaves (call me if you see gray blocks that should not be gray) --- .../wrappers/block/BlockColorWrapper.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/seibel/lod/forge/wrappers/block/BlockColorWrapper.java b/src/main/java/com/seibel/lod/forge/wrappers/block/BlockColorWrapper.java index 933dc853a..20af9b0af 100644 --- a/src/main/java/com/seibel/lod/forge/wrappers/block/BlockColorWrapper.java +++ b/src/main/java/com/seibel/lod/forge/wrappers/block/BlockColorWrapper.java @@ -127,23 +127,23 @@ public class BlockColorWrapper implements IBlockColorWrapper TextureAtlasSprite texture; List quads = null; - boolean isTinted = false; - int listSize = 0; + //boolean isTinted = false; + //int listSize = 0; // first step is to check if this block has a tinted face - for (Direction direction : directions) - { - quads = mc.getModelManager().getBlockModelShaper().getBlockModel(block.defaultBlockState()).getQuads(blockState, direction, random, dataMap); - listSize = Math.max(listSize, quads.size()); - for (BakedQuad bakedQuad : quads) - { - isTinted |= bakedQuad.isTinted(); - } - } + //for (Direction direction : directions) + //{ + // quads = mc.getModelManager().getBlockModelShaper().getBlockModel(block.defaultBlockState()).getQuads(blockState, direction, random, dataMap); + // listSize = Math.max(listSize, quads.size()); + // for (BakedQuad bakedQuad : quads) + // { + // isTinted |= bakedQuad.isTinted(); + // } + //} //if it contains a tinted face then we store this block in the toTint set - if (isTinted) - this.toTint = true; + //if (isTinted) + // this.toTint = true; //now we get the first non-empty face for (Direction direction : directions)