From 5525aac9d5b08de7b2975b9217b946cffb0f45da Mon Sep 17 00:00:00 2001 From: Sally Knight Date: Thu, 12 Mar 2026 16:07:16 +0300 Subject: [PATCH] fix: reorder and correct lighting for blocks in container screens --- Minecraft.Client/UI/Screens/AbstractContainerScreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Minecraft.Client/UI/Screens/AbstractContainerScreen.cpp b/Minecraft.Client/UI/Screens/AbstractContainerScreen.cpp index 147251dc7..13376b7d7 100644 --- a/Minecraft.Client/UI/Screens/AbstractContainerScreen.cpp +++ b/Minecraft.Client/UI/Screens/AbstractContainerScreen.cpp @@ -42,7 +42,6 @@ void AbstractContainerScreen::render(int xm, int ym, float a) glPushMatrix(); glRotatef(120, 1, 0, 0); - Lighting::turnOn(); glPopMatrix(); glPushMatrix(); @@ -50,6 +49,7 @@ void AbstractContainerScreen::render(int xm, int ym, float a) glColor4f(1, 1, 1, 1); glEnable(GL_RESCALE_NORMAL); + Lighting::turnOnGui(); Slot *hoveredSlot = NULL; @@ -85,8 +85,8 @@ void AbstractContainerScreen::render(int xm, int ym, float a) itemRenderer->renderGuiItemDecorations(font, minecraft->textures, inventory->getCarried(), xm - xo - 8, ym - yo - 8); // carriedSlot = old; } - glDisable(GL_RESCALE_NORMAL); Lighting::turnOff(); + glDisable(GL_RESCALE_NORMAL); glDisable(GL_LIGHTING); glDisable(GL_DEPTH_TEST);