mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Optimize lighting calculation (#12797)
This commit is contained in:
committed by
GitHub
parent
440d966b93
commit
9676364c1f
@@ -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
|
||||
|
Reference in New Issue
Block a user