forked from mirrors/kolyah35-minecraft-pe-0.6.1
FIX: Steve skin hand, containers open in creative, crash when downfalls is nullptr, build on android (hope)
This commit is contained in:
parent
d7a51b09f1
commit
9a743b9aea
11 changed files with 42 additions and 22 deletions
|
|
@ -44,7 +44,7 @@ int TallGrass::getColor( LevelSource* level, int x, int y, int z ) {
|
|||
int d = level->getData(x, y, z);
|
||||
if (d == DEAD_SHRUB); //return 0xffffff; // i removed this to make it accurate to beta 1.6.6 instead of early java release versions
|
||||
float temp = level->getBiomeSource()->temperatures[0]; // shredder added
|
||||
float rain = level->getBiomeSource()->downfalls[0]; // shredder added
|
||||
float rain = level->getBiomeSource()->downfalls != nullptr ? level->getBiomeSource()->downfalls[0] : 0; // shredder added
|
||||
if (!GrassColor::useTint && d == DEAD_SHRUB){
|
||||
return 0xffffff;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue