Hey there,
Just a word beforehand: I'm new to modding and I have a Server up for a few years running a giant city map with several mods (List see below), which is why I can't upgrade easily everything to MC 1.8 or higher because many Mods we use are discontinued or totally rewritten, so our years long hard work would be lost!
My Problem is, that I have some Light Bugs which only effect some TileEntities of three mods (including my own).
The Bug occurs only while looking at the TE from a certain perspective:
Light Bug
No Light Bug
I already searched the web and the Forums and I already know how the Lighting system of Minecraft works, but still can't fix it.
My TE Rendering Code looks like this so far:
@Override
public void renderTileEntityAt(TileEntity tileentity, double x, double y,
double z, float f) {
GL11.glPushMatrix();
GL11.glTranslatef((float)x + 0.5F, (float)y + 1.5F, (float)z + 0.5F);
GL11.glRotatef(180, 0F, 0F, 1F);
this.bindTexture(texture);
TileEntitySchildAutobahn tile = (TileEntitySchildAutobahn) tileentity;
int direction = tile.direction;
GL11.glRotatef(direction * 90, 0.0F, 1.0F, 0.0F);
this.model.renderModel(0.0625f);
GL11.glPopMatrix();
}
//Set the lighting stuff, so it changes it's brightness properly.
private void adjustLightFixture(World world, int i, int j, int k, Block block) {
Tessellator tess = Tessellator.instance;
float brightness = block.getBlockBrightness(world, i, j, k);
int skyLight = world.getLightBrightnessForSkyBlocks(i, j, k, 0);
int modulousModifier = skyLight % 65536;
int divModifier = skyLight / 65536;
tess.setColorOpaque_F(brightness, brightness, brightness);
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float) modulousModifier, divModifier);
}
So as you can see, I already tried that common Light Fix Stuff, but it doesn't fix my issue at all.
Any ideas?
BTW the modlist:
I really someone might help me, even the MC Version is way outdated. I'm getting crazy on this issue -.-