Adjust handling of transparent biome shading files (grass, foliage), as used in Painter's texture pack
This commit is contained in:
parent
c55ec0a3c1
commit
b955120b8b
1 changed files with 5 additions and 3 deletions
|
|
@ -1162,9 +1162,11 @@ public class TexturePack {
|
||||||
else {
|
else {
|
||||||
clr = biomeLookup(li.argb, li.width, mapiter.getRawBiomeRainfall(), mapiter.getRawBiomeTemperature());
|
clr = biomeLookup(li.argb, li.width, mapiter.getRawBiomeRainfall(), mapiter.getRawBiomeTemperature());
|
||||||
}
|
}
|
||||||
if(swamp_shaded && (mapiter.getBiome() == Biome.SWAMPLAND))
|
if((clr & 0xFF000000) != 0) {
|
||||||
clr = (clr & 0xFF000000) | (((clr & 0x00FEFEFE) + 0x4E0E4E) / 2);
|
if(swamp_shaded && (mapiter.getBiome() == Biome.SWAMPLAND))
|
||||||
rslt.blendColor(clr);
|
clr = (clr & 0xFF000000) | (((clr & 0x00FEFEFE) + 0x4E0E4E) / 2);
|
||||||
|
rslt.blendColor(clr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue