actually fix tint on custom water textures.

This commit is contained in:
cola98765
2022-02-19 22:28:35 +01:00
parent 1c859cd7da
commit 47c28f0f37
@@ -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;