From 3e3f612e5cb20c4a6bdd7e64c2ed7d3166db0564 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Tue, 19 Apr 2011 08:42:55 +0000 Subject: [PATCH] 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... --- Substrate/SubstrateCS/Source/ChunkRef.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Substrate/SubstrateCS/Source/ChunkRef.cs b/Substrate/SubstrateCS/Source/ChunkRef.cs index bb7738b..c89593d 100644 --- a/Substrate/SubstrateCS/Source/ChunkRef.cs +++ b/Substrate/SubstrateCS/Source/ChunkRef.cs @@ -505,7 +505,7 @@ namespace Substrate 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); }