From 47c28f0f372ee14df71392e1723a2dac125cbb8f Mon Sep 17 00:00:00 2001 From: cola98765 Date: Sat, 19 Feb 2022 22:28:35 +0100 Subject: [PATCH] actually fix tint on custom water textures. --- .../seibel/lod/common/wrappers/block/BlockColorWrapper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/block/BlockColorWrapper.java b/common/src/main/java/com/seibel/lod/common/wrappers/block/BlockColorWrapper.java index b3b7d4a0b..45f3aadc8 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/block/BlockColorWrapper.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/block/BlockColorWrapper.java @@ -146,7 +146,7 @@ public class BlockColorWrapper implements IBlockColorWrapper // generate the block's color // for (int frameIndex = 0; frameIndex < texture.getFrameCount(); frameIndex++) - boolean lookForTint = grassInstance() || leavesInstance() || waterInstance(); + boolean lookForTint = grassInstance() || leavesInstance(); int frameIndex = 0; // TODO { @@ -205,6 +205,8 @@ public class BlockColorWrapper implements IBlockColorWrapper // determine if this block should use the biome color tint if (lookForTint && (float) numberOfGreyPixel / count > 0.75f) this.toTint = true; + if (waterInstance()) + this.toTint = true; // we check which kind of tint we need to apply this.grassTint = grassInstance() && toTint;