mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Optimize lighting calculation (#12797)
This commit is contained in:
committed by
GitHub
parent
440d966b93
commit
9676364c1f
@@ -180,7 +180,7 @@ void MapBlock::actuallyUpdateDayNightDiff()
|
||||
if (n == previous_n)
|
||||
continue;
|
||||
|
||||
differs = !n.isLightDayNightEq(nodemgr);
|
||||
differs = !n.isLightDayNightEq(nodemgr->getLightingFlags(n));
|
||||
if (differs)
|
||||
break;
|
||||
previous_n = n;
|
||||
|
Reference in New Issue
Block a user