Here.
public int getBrightnessForRender(float par1)
{
//Hah, found it too.
// ! is not, && is and, and <= is equal or less..
if (!mod_xray.on && mod_xray.lightmode <= 0 && !mod_xray.cavefinder)
{
//Okay, this ain't part of the mod.
int var2 = MathHelper.floor_double(this.posX);
int var3 = MathHelper.floor_double(this.posZ);
if (this.worldObj.blockExists(var2, 0, var3))
{
double var4 = (this.boundingBox.maxY - this.boundingBox.minY) * 0.66D;
int var6 = MathHelper.floor_double(this.posY - (double)this.yOffset + var4);
return this.worldObj.getLightBrightnessForSkyBlocks(var2, var6, var3, 0);
}
else
{
return 0;
//Below is modded.
}
}
else
{
return 1000;
}
//END OF MOD
}
I want to patch a minecraft class with the above code.
I searched how and I didn't find an answer.
...