From 7104ba93ae8406cbb030b52ac5d53c968236d33b Mon Sep 17 00:00:00 2001 From: InviseDivine Date: Tue, 21 Jul 2026 17:28:42 +0200 Subject: [PATCH] FIX: Grass color and egg red rectangle --- src/client/renderer/entity/ItemRenderer.cpp | 6 +++--- src/world/level/tile/TallGrass.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/renderer/entity/ItemRenderer.cpp b/src/client/renderer/entity/ItemRenderer.cpp index d103fcc..4c48a3b 100755 --- a/src/client/renderer/entity/ItemRenderer.cpp +++ b/src/client/renderer/entity/ItemRenderer.cpp @@ -189,9 +189,9 @@ void ItemRenderer::renderGuiItem(Font* font, Textures* textures, const ItemInsta // it we're batching for saving the // buffer, this will fail miserably t.endOverrideAndDraw(); - glDisable2(GL_TEXTURE_2D); - fillRect(t, x, y, w, h, 0xff0000); - glEnable2(GL_TEXTURE_2D); + // glDisable2(GL_TEXTURE_2D); + // fillRect(t, x, y, w, h, 0xff0000); + // glEnable2(GL_TEXTURE_2D); renderGuiItemCorrect(font, textures, item, int(x), int(y)); t.beginOverride(); } diff --git a/src/world/level/tile/TallGrass.cpp b/src/world/level/tile/TallGrass.cpp index 5f9743b..2c52bf6 100755 --- a/src/world/level/tile/TallGrass.cpp +++ b/src/world/level/tile/TallGrass.cpp @@ -48,9 +48,9 @@ int TallGrass::getColor( LevelSource* level, int x, int y, int z ) { if (!GrassColor::useTint && d == DEAD_SHRUB){ return 0xffffff; } - if (GrassColor::useTint){ - return GrassColor::get(temp, rain); - } + // if (GrassColor::useTint){ + // 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 //if (GrassColor::useTint){ //return level->getBiome(x, z)->getGrassColor();