From 34b0834da4ea7a919c2a50a76db10ae5278b9c88 Mon Sep 17 00:00:00 2001 From: Lucas Dower Date: Sun, 21 May 2023 17:37:23 +0100 Subject: [PATCH] Fix for block lighting at bottom layer of blocks --- src/lighting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lighting.ts b/src/lighting.ts index 9b0271b..90f643e 100644 --- a/src/lighting.ts +++ b/src/lighting.ts @@ -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; }