forked from mirrors/NBTExplorer
Squashed a new lighting bug. There is still a cutoff bug for sunlight calculation, like the old blocklight bug. Need separate spreadlight function for sunlight, but it could be expensive...
This commit is contained in:
parent
bd62ccc04c
commit
3e3f612e5c
1 changed files with 1 additions and 1 deletions
|
@ -505,7 +505,7 @@ namespace Substrate
|
||||||
h = Math.Max(h, cw.GetHeight(x, 0));
|
h = Math.Max(h, cw.GetHeight(x, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int y = h; y < YDim; y++) {
|
for (int y = h + 1; y < YDim; y++) {
|
||||||
SetBlockSkyLight(x, y, z, BlockInfo.MAX_LUMINANCE);
|
SetBlockSkyLight(x, y, z, BlockInfo.MAX_LUMINANCE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue