Jump to content

[1.6.4] Light Bug


Recommended Posts

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:


public void renderTileEntityAt(TileEntity tileentity, double x, double y,
		double z, float f) {

		GL11.glTranslatef((float)x + 0.5F, (float)y + 1.5F, (float)z + 0.5F);
		GL11.glRotatef(180, 0F, 0F, 1F);

		TileEntitySchildAutobahn tile = (TileEntitySchildAutobahn) tileentity;
		int direction = tile.direction;
		GL11.glRotatef(direction * 90, 0.0F, 1.0F, 0.0F);



//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:




- ArchimedesShips(doesn't cause the issue)

- buildcraft

- CodeChickenCore

- ComputerCraft

- CustomNPCs

- FlenixCitiesCore (TEs have Light Bug, too)

- Flenix Roads (TEs have Light Bug, too)

- JavalCars

- My own Mod (Light Bugs)

- malisiscore

- malisisdoors


- ProjectRed (Base, Compat, Integration, Lighting, Mechanical)

- Railcraft

- traincraft (only fancy rails have Light Bug)

- worldedit



I really someone might help me, even the MC Version is way outdated. I'm getting crazy on this issue -.-

Link to comment
Share on other sites

1.6.4 is no longer supported by Forge. Update to 1.10.2.


You can't stay on old versions forever. You have to update someday.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.


1.12 -> 1.13 primer by williewillus.


1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.



Link to comment
Share on other sites

This topic is now closed to further replies.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.