mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Make generated water a shade darker to match up with older versions
This commit is contained in:
parent
3f13dc790c
commit
9126823c7e
@ -943,12 +943,12 @@ void Mapgen::calcLighting(v3s16 nmin, v3s16 nmax) {
|
||||
|
||||
u8 light = n.param1 & 0x0F;
|
||||
if (light) {
|
||||
lightSpread(a, v3s16(x, y, z + 1), light);
|
||||
lightSpread(a, v3s16(x, y + 1, z ), light);
|
||||
lightSpread(a, v3s16(x + 1, y, z ), light);
|
||||
lightSpread(a, v3s16(x, y, z - 1), light);
|
||||
lightSpread(a, v3s16(x, y - 1, z ), light);
|
||||
lightSpread(a, v3s16(x - 1, y, z ), light);
|
||||
lightSpread(a, v3s16(x, y, z + 1), light - 1);
|
||||
lightSpread(a, v3s16(x, y + 1, z ), light - 1);
|
||||
lightSpread(a, v3s16(x + 1, y, z ), light - 1);
|
||||
lightSpread(a, v3s16(x, y, z - 1), light - 1);
|
||||
lightSpread(a, v3s16(x, y - 1, z ), light - 1);
|
||||
lightSpread(a, v3s16(x - 1, y, z ), light - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user