Fix for block lighting at bottom layer of blocks

This commit is contained in:
Lucas Dower 2023-05-21 17:37:23 +01:00
parent d3b0580fef
commit 34b0834da4
No known key found for this signature in database
GPG Key ID: B3EE6B8499593605

View File

@ -458,7 +458,7 @@ export class BlockMeshLighting {
const limit = this._limits.get(key.hash());
if (limit !== undefined) {
return vec.y >= this._bounds.min.y && vec.y <= limit.maxY + 1;
return vec.y >= this._bounds.min.y - 1 && vec.y <= limit.maxY + 1;
} else {
return false;
}