mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 19:28:49 -04:00
Heavily reduce the chance of 2 trees spawning right next to each other
This commit is contained in:
parent
d4dd5fbc36
commit
72e09c850d
@ -213,7 +213,7 @@ public class Chunk {
|
|||||||
int incy = py == 0 ? 1 : -1;
|
int incy = py == 0 ? 1 : -1;
|
||||||
int temperature = (int)((2-map[px][py]+SEA_LEVEL/(float)World.WORLD_HEIGHT)*heatMap[px][py]*120) - 100;
|
int temperature = (int)((2-map[px][py]+SEA_LEVEL/(float)World.WORLD_HEIGHT)*heatMap[px][py]*120) - 100;
|
||||||
if (map[px][py] * World.WORLD_HEIGHT >= SEA_LEVEL + 4) {
|
if (map[px][py] * World.WORLD_HEIGHT >= SEA_LEVEL + 4) {
|
||||||
Structures.generateVegetation(this, wx + px, (int) (map[px][py] * World.WORLD_HEIGHT) + 1, wy + py, value, temperature, (int)((vegetation[px][py]-vegetation[px+incx][py+incy]) * 100000000));
|
Structures.generateVegetation(this, wx + px, (int) (map[px][py] * World.WORLD_HEIGHT) + 1, wy + py, value, temperature, (int)((vegetation[px][py]-vegetation[px+incx][py+incy]) * 100000000 + incx + incy));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user