Heavily reduce the chance of 2 trees spawning right next to each other

This commit is contained in:
IntegratedQuantum 2019-03-26 20:27:57 +01:00
parent d4dd5fbc36
commit 72e09c850d

View File

@ -213,7 +213,7 @@ public class Chunk {
int incy = py == 0 ? 1 : -1;
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) {
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));
}
}
}