From a492e009bc895a653d2a7e19c9b320f9477f4c33 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 8 Apr 2017 10:18:42 +0300 Subject: Platinum dust as catalyst, Iron catalist as dust --- ihl/model/RenderBlocksExt.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'ihl/model') diff --git a/ihl/model/RenderBlocksExt.java b/ihl/model/RenderBlocksExt.java index f634bb0..b4b334a 100644 --- a/ihl/model/RenderBlocksExt.java +++ b/ihl/model/RenderBlocksExt.java @@ -33,16 +33,14 @@ public class RenderBlocksExt extends RenderBlocks { } private void transformColour(int x, int y, int z, int[] normal) { - for (LightSource lightSource : ((ClientProxy)IHLMod.proxy).getLightHandler().lightSources) { + /* for (LightSource lightSource : ((ClientProxy)IHLMod.proxy).getLightHandler().lightSources) { if (lightSource.isBlockIlluminated(x, y, z)) { int[] lightValue = lightSource.getLightValue((int) x, (int) y, (int) z, normal); System.out.println("this.brightnessBottomRight="+this.brightnessBottomRight); -// this.brightnessTopLeft |= lightValue[0]; -// this.brightnessBottomLeft |= lightValue[0]; -// this.brightnessTopRight |= lightValue[0]; - this.brightnessBottomRight |= lightValue[0]>>4; - System.out.println("lightValue[0]="+lightValue[0]); - System.out.println("this.brightnessBottomRight|lightValue[0]="+this.brightnessBottomRight); + this.brightnessTopLeft |= lightValue[0]; + this.brightnessBottomLeft |= lightValue[0]; + this.brightnessTopRight |= lightValue[0]; + this.brightnessBottomRight |= lightValue[0]; this.colorRedTopLeft *= (255 - lightValue[0]) * lightValue[1] / 255 / 255f; this.colorRedBottomLeft *= (255 - lightValue[0]) * lightValue[1] / 255 / 255f; this.colorRedTopRight *= (255 - lightValue[0]) * lightValue[1] / 255 / 255f; @@ -56,7 +54,7 @@ public class RenderBlocksExt extends RenderBlocks { this.colorGreenTopRight *= (255 - lightValue[0]) * lightValue[3] / 255 / 255f; this.colorGreenBottomRight *= (255 - lightValue[0]) * lightValue[3] / 255 / 255f; } - } + }*/ } @Override -- cgit v1.2.3