mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Make generated water a shade darker to match up with older versions
This commit is contained in:
@@ -943,12 +943,12 @@ void Mapgen::calcLighting(v3s16 nmin, v3s16 nmax) {
|
|||||||
|
|
||||||
u8 light = n.param1 & 0x0F;
|
u8 light = n.param1 & 0x0F;
|
||||||
if (light) {
|
if (light) {
|
||||||
lightSpread(a, v3s16(x, y, z + 1), light);
|
lightSpread(a, v3s16(x, y, z + 1), light - 1);
|
||||||
lightSpread(a, v3s16(x, y + 1, z ), light);
|
lightSpread(a, v3s16(x, y + 1, z ), light - 1);
|
||||||
lightSpread(a, v3s16(x + 1, y, z ), light);
|
lightSpread(a, v3s16(x + 1, y, z ), light - 1);
|
||||||
lightSpread(a, v3s16(x, y, z - 1), light);
|
lightSpread(a, v3s16(x, y, z - 1), light - 1);
|
||||||
lightSpread(a, v3s16(x, y - 1, z ), light);
|
lightSpread(a, v3s16(x, y - 1, z ), light - 1);
|
||||||
lightSpread(a, v3s16(x - 1, y, z ), light);
|
lightSpread(a, v3s16(x - 1, y, z ), light - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user