what the fuck is this baby doing mixed in with my bathwater

This commit is contained in:
George Paton 2026-01-08 22:17:25 +11:00
parent 7757e3cb53
commit b5b4a537c5

View File

@ -30,6 +30,9 @@ public class RenderMassStorage extends TileEntitySpecialRenderer {
Minecraft mc = Minecraft.getMinecraft(); Minecraft mc = Minecraft.getMinecraft();
int dir = storage.getBlockMetadata() / 4; int dir = storage.getBlockMetadata() / 4;
// fuck this shit, push pop the whole ass lighting state then for all I fucken care
GL11.glPushAttrib(GL11.GL_ENABLE_BIT | GL11.GL_LIGHTING_BIT | GL11.GL_COLOR_BUFFER_BIT);
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240, 240); OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240, 240);
GL11.glPushMatrix(); GL11.glPushMatrix();
@ -111,10 +114,10 @@ public class RenderMassStorage extends TileEntitySpecialRenderer {
GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_TEXTURE_2D);
GL11.glEnable(GL11.GL_LIGHTING); GL11.glEnable(GL11.GL_LIGHTING);
RenderHelper.enableStandardItemLighting();
} }
GL11.glPopMatrix(); GL11.glPopMatrix();
GL11.glPopAttrib();
} }
private String getTextForCount(int stackSize, boolean isUnicode) { private String getTextForCount(int stackSize, boolean isUnicode) {