} else {
internalLightLevel = world.getMixedBrightnessAt(block, x, y, z);
}
for (int i = 0; i < getX().length; i++) {
MutableIntegerVector sourceBlock = getLightSource(i, x, y, z);
int sideBrightness;
if (block != null && sourceBlock != null) {
sideBrightness = world.getMixedBrightnessAt(block, sourceBlock.getBlockX(), sourceBlock.getBlockY(), sourceBlock.getBlockZ());
} else {
sideBrightness = internalLightLevel;
}
if (block == null) {