Fixed serious lighting (heightmap) bug that messes with MC's normal lighting and generation behavior.

This commit is contained in:
Justin Aquadro 2011-06-04 02:03:40 +00:00
parent 16cf6399f0
commit c2ff6a3a92

View file

@ -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;
}
}