aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2018-03-10 09:37:43 +0100
committerSmallJoker <mk939@ymail.com>2018-03-10 09:37:43 +0100
commitee20433425f01998c2903d9f8185ce9dd3dc6e77 (patch)
tree3bafa47648b27f1d81f545d32503115e0a00edae /src
parent5a1884c21de1a3bf9ed54e66a72336322540740e (diff)
downloadminetest-ee20433425f01998c2903d9f8185ce9dd3dc6e77.tar.gz
minetest-ee20433425f01998c2903d9f8185ce9dd3dc6e77.tar.bz2
minetest-ee20433425f01998c2903d9f8185ce9dd3dc6e77.zip
Fix typo in lighting code since bcdb3d5
Diffstat (limited to 'src')
-rw-r--r--src/voxelalgorithms.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/voxelalgorithms.cpp b/src/voxelalgorithms.cpp
index cf4cee205..1f3abf1be 100644
--- a/src/voxelalgorithms.cpp
+++ b/src/voxelalgorithms.cpp
@@ -1008,7 +1008,7 @@ void finish_bulk_light_update(Map *map, mapblock_v3 minblock,
for (relpos.X = 0; relpos.X < MAP_BLOCKSIZE; relpos.X++)
for (relpos.Z = 0; relpos.Z < MAP_BLOCKSIZE; relpos.Z++)
for (relpos.Y = 0; relpos.Y < MAP_BLOCKSIZE; relpos.Y++) {
- MapNode node = block->getNodeNoCheck(relpos.X, relpos.Y, relpos.Y, &is_valid);
+ MapNode node = block->getNodeNoCheck(relpos.X, relpos.Y, relpos.Z, &is_valid);
const ContentFeatures &f = ndef->get(node);
// For each light bank