mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Blob ore: Fix partial blobs
This commit is contained in:
parent
691eb2d06d
commit
795db97fe3
@ -358,9 +358,9 @@ void OreBlob::generate(MMVManip *vm, int mapseed, u32 blockseed,
|
||||
|
||||
float noiseval = noise->result[index];
|
||||
|
||||
float xdist = x1 - csize / 2;
|
||||
float ydist = y1 - csize / 2;
|
||||
float zdist = z1 - csize / 2;
|
||||
float xdist = (s32)x1 - (s32)csize / 2;
|
||||
float ydist = (s32)y1 - (s32)csize / 2;
|
||||
float zdist = (s32)z1 - (s32)csize / 2;
|
||||
|
||||
noiseval -= (sqrt(xdist * xdist + ydist * ydist + zdist * zdist) / csize);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user