From f058ad878ce9544a4572cd49a23396fce7889167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Sat, 13 Jun 2015 02:03:57 +0200 Subject: [PATCH] That should be more correct. --- src/main/scala/li/cil/oc/common/block/ServerRack.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/li/cil/oc/common/block/ServerRack.scala b/src/main/scala/li/cil/oc/common/block/ServerRack.scala index aa3c31675..516494387 100644 --- a/src/main/scala/li/cil/oc/common/block/ServerRack.scala +++ b/src/main/scala/li/cil/oc/common/block/ServerRack.scala @@ -30,7 +30,7 @@ class ServerRack extends RedstoneAware with traits.SpecialBlock with traits.Powe override def getMixedBrightnessForBlock(world: IBlockAccess, x: Int, y: Int, z: Int) = { if (y >= 0 && y < world.getHeight) world.getTileEntity(x, y, z) match { case rack: tileentity.ServerRack => - def brightness(x: Int, y: Int, z: Int) = world.getLightBrightnessForSkyBlocks(x, y, z, getLightValue(world, x, y, z)) + def brightness(x: Int, y: Int, z: Int) = world.getLightBrightnessForSkyBlocks(x, y, z, world.getBlock(x, y, z).getLightValue(world, x, y, z)) val value = brightness(x + rack.facing.offsetX, y + rack.facing.offsetY, z + rack.facing.offsetZ) val skyBrightness = (value >> 20) & 15 val blockBrightness = (value >> 4) & 15