Adjust handling of transparent biome shading files (grass, foliage), as used in Painter's texture pack

This commit is contained in:
Mike Primm 2011-12-23 13:28:30 +08:00 committed by mikeprimm
parent cd067adfdc
commit 93613404ba

View File

@ -1162,9 +1162,11 @@ public class TexturePack {
else {
clr = biomeLookup(li.argb, li.width, mapiter.getRawBiomeRainfall(), mapiter.getRawBiomeTemperature());
}
if(swamp_shaded && (mapiter.getBiome() == Biome.SWAMPLAND))
clr = (clr & 0xFF000000) | (((clr & 0x00FEFEFE) + 0x4E0E4E) / 2);
rslt.blendColor(clr);
if((clr & 0xFF000000) != 0) {
if(swamp_shaded && (mapiter.getBiome() == Biome.SWAMPLAND))
clr = (clr & 0xFF000000) | (((clr & 0x00FEFEFE) + 0x4E0E4E) / 2);
rslt.blendColor(clr);
}
}
}