fix SPRUCE and BIRCH leaves

This commit is contained in:
cola98765
2021-12-26 15:45:13 +01:00
parent aeb2e31a6e
commit b80d1c784d
@@ -238,7 +238,13 @@ public class BlockColorWrapper implements IBlockColorWrapper
this.waterTint = waterIstance() && toTint;
color = tempColor;
//hardcoded leaves
if (block == Blocks.SPRUCE_LEAVES)
color = ColorUtil.multiplyRGBcolors(tempColor, 0xFF619961);
else if (block == Blocks.BIRCH_LEAVES)
color = ColorUtil.multiplyRGBcolors(tempColor, 0xFF80A755);
else
color = tempColor;
}
/** determine if the given block should use the biome's grass color */
@@ -255,7 +261,7 @@ public class BlockColorWrapper implements IBlockColorWrapper
/** determine if the given block should use the biome's foliage color */
private boolean leavesInstance()
{
return block instanceof LeavesBlock
return (block instanceof LeavesBlock && block != Blocks.SPRUCE_LEAVES && block != Blocks.BIRCH_LEAVES)
|| block == Blocks.VINE
|| block == Blocks.SUGAR_CANE;
}