mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-08 16:32:55 +00:00
fix: reorder and correct lighting for blocks in container screens
This commit is contained in:
parent
e66f279a5b
commit
5525aac9d5
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue