mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
generate-time lighting optimization
This commit is contained in:
@@ -537,7 +537,7 @@ struct TestMapBlock
|
||||
core::map<v3s16, bool> light_sources;
|
||||
// The block below should be valid because there shouldn't be
|
||||
// sunlight in there either
|
||||
assert(b.propagateSunlight(light_sources) == true);
|
||||
assert(b.propagateSunlight(light_sources, true) == true);
|
||||
// Should not touch nodes that are not affected (that is, all of them)
|
||||
//assert(b.getNode(v3s16(1,2,3)).getLight() == LIGHT_SUN);
|
||||
// Should set light of non-sunlighted blocks to 0.
|
||||
|
Reference in New Issue
Block a user