forked from mirrors/NBTExplorer
Fixed serious lighting (heightmap) bug that messes with MC's normal lighting and generation behavior.
This commit is contained in:
parent
16cf6399f0
commit
c2ff6a3a92
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ namespace Substrate
|
|||
for (int y = ydim - 1; y >= 0; y--) {
|
||||
BlockInfo info = _blockset.GetInfo(x, y, z);
|
||||
if (info.Opacity > BlockInfo.MIN_OPACITY || !info.TransmitsLight) {
|
||||
_blockset.SetHeight(x, z, y);
|
||||
_blockset.SetHeight(x, z, Math.Min(y + 1, ydim - 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue