diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-10-09 10:50:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-09 10:50:26 -0400 |
commit | 9676364c1fe5fe5eae69c55e7d7a45392decfb2d (patch) | |
tree | b21c99ce54820b24bfef9028c39b01f28ed3c1ca /src/voxel.cpp | |
parent | 440d966b939059dfa51604eb68d61eecb12baeb4 (diff) | |
download | minetest-9676364c1fe5fe5eae69c55e7d7a45392decfb2d.tar.xz |
Optimize lighting calculation (#12797)
Diffstat (limited to 'src/voxel.cpp')
-rw-r--r-- | src/voxel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/voxel.cpp b/src/voxel.cpp index 1f1d25373..bb270f53b 100644 --- a/src/voxel.cpp +++ b/src/voxel.cpp @@ -110,7 +110,7 @@ void VoxelManipulator::print(std::ostream &o, const NodeDefManager *ndef, c = 'X'; else { - u8 light = n.getLight(LIGHTBANK_DAY, ndef); + u8 light = n.getLight(LIGHTBANK_DAY, ndef->getLightingFlags(n)); if(light < 10) c = '0' + light; else |