summaryrefslogtreecommitdiff
path: root/ihl/enviroment
diff options
context:
space:
mode:
authorFoghrye4 <foghrye4@gmail.com>2017-04-08 10:18:42 +0300
committerFoghrye4 <foghrye4@gmail.com>2017-04-08 10:18:42 +0300
commita492e009bc895a653d2a7e19c9b320f9477f4c33 (patch)
tree0c723475e02eccc104950a8ee1436a8d5a05d3a5 /ihl/enviroment
parent1a20d0d9a7fd77fbf499aeaaadcdb94cffb97c90 (diff)
Platinum dust as catalyst, Iron catalist as dust
Diffstat (limited to 'ihl/enviroment')
-rw-r--r--ihl/enviroment/LightHandler.java2
-rw-r--r--ihl/enviroment/LightSource.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/ihl/enviroment/LightHandler.java b/ihl/enviroment/LightHandler.java
index b3f8da6..c89ffb7 100644
--- a/ihl/enviroment/LightHandler.java
+++ b/ihl/enviroment/LightHandler.java
@@ -59,7 +59,7 @@ public class LightHandler {
private void litBlocksAndGetDescendants(World world, int[] evSource, int[] lightSource, BitSet illuminatedBlocksSet,
int ev, int power, int[] directionMask, int[] borders) {
power = this.getNewPower(world, ev, evSource, lightSource, power, directionMask, illuminatedBlocksSet, borders);
- power = (power<<1)/3 - 1;
+ power = (power<<4)/17 - 1;
if (power > 1) {
if (vectors[ev][0] == 0) {
int[] xyz = IHLMod.explosionHandler.decodeXYZ(ev);
diff --git a/ihl/enviroment/LightSource.java b/ihl/enviroment/LightSource.java
index 291b15a..ff4a91f 100644
--- a/ihl/enviroment/LightSource.java
+++ b/ihl/enviroment/LightSource.java
@@ -72,7 +72,7 @@ public class LightSource {
dx=dx>0?(dx<<16)/d:0;
dy=dy>0?(dy<<16)/d:0;
dz=dz>0?(dz<<16)/d:0;
- int brightness = Math.min(power*(dx+dy+dz)>>16,255);
+ int brightness = Math.min(power*(dx+dy+dz)>>16,16);
return new int[]{brightness, this.red, this.blue, this.green};
}
}