mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-24 19:39:47 +00:00
FIX: Grass color and egg red rectangle
This commit is contained in:
parent
5ef00eee9f
commit
7104ba93ae
2 changed files with 6 additions and 6 deletions
|
|
@ -189,9 +189,9 @@ void ItemRenderer::renderGuiItem(Font* font, Textures* textures, const ItemInsta
|
||||||
// it we're batching for saving the
|
// it we're batching for saving the
|
||||||
// buffer, this will fail miserably
|
// buffer, this will fail miserably
|
||||||
t.endOverrideAndDraw();
|
t.endOverrideAndDraw();
|
||||||
glDisable2(GL_TEXTURE_2D);
|
// glDisable2(GL_TEXTURE_2D);
|
||||||
fillRect(t, x, y, w, h, 0xff0000);
|
// fillRect(t, x, y, w, h, 0xff0000);
|
||||||
glEnable2(GL_TEXTURE_2D);
|
// glEnable2(GL_TEXTURE_2D);
|
||||||
renderGuiItemCorrect(font, textures, item, int(x), int(y));
|
renderGuiItemCorrect(font, textures, item, int(x), int(y));
|
||||||
t.beginOverride();
|
t.beginOverride();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,9 @@ int TallGrass::getColor( LevelSource* level, int x, int y, int z ) {
|
||||||
if (!GrassColor::useTint && d == DEAD_SHRUB){
|
if (!GrassColor::useTint && d == DEAD_SHRUB){
|
||||||
return 0xffffff;
|
return 0xffffff;
|
||||||
}
|
}
|
||||||
if (GrassColor::useTint){
|
// if (GrassColor::useTint){
|
||||||
return GrassColor::get(temp, rain);
|
// return GrassColor::get(temp, rain); @fixme @todo doesnt work properly
|
||||||
}
|
// }
|
||||||
// @TODO port this function from beta 1.6.6 probably, for now im using biomesource to tint it directly above - shredder
|
// @TODO port this function from beta 1.6.6 probably, for now im using biomesource to tint it directly above - shredder
|
||||||
//if (GrassColor::useTint){
|
//if (GrassColor::useTint){
|
||||||
//return level->getBiome(x, z)->getGrassColor();
|
//return level->getBiome(x, z)->getGrassColor();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue