Skip to content

Commit

Permalink
#106 EntityDireSlime#getBrightness using client only method
Browse files Browse the repository at this point in the history
  • Loading branch information
tterrag1098 committed Aug 25, 2015
1 parent fab0e2b commit 39dfb7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public float getBrightness(float p_70013_1_) {
if (!worldObj.isAirBlock(new BlockPos(i, 0, j))) {
double d0 = (getEntityBoundingBox().maxY - getEntityBoundingBox().minY) * 0.66D;
int k = MathHelper.floor_double(this.posY - getYOffset() + d0);
return worldObj.getCombinedLight(new BlockPos( i, k, j), 0);
return worldObj.getLightBrightness(new BlockPos( i, k, j));
} else {
return 0.0F;
}
Expand Down

0 comments on commit 39dfb7f

Please sign in to comment.