Jump to content

[1.6.4] Light Bug


eljotem

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

 

LightBug.jpg

 

 

No Light Bug

 

LightBug2.jpg

 

 

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:

 

 

Forge 9.11.1.1345

- 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

- NEI

- 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.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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