xor world seed into PaddedGridDistributor seed

This commit is contained in:
dfsek 2021-12-28 19:12:06 -07:00
parent 36d417d3db
commit ea7e78c498

View File

@ -27,7 +27,7 @@ public class PaddedGridDistributor implements Distributor {
int cellX = FastMath.floorDiv(x, cellWidth); int cellX = FastMath.floorDiv(x, cellWidth);
int cellZ = FastMath.floorDiv(z, cellWidth); int cellZ = FastMath.floorDiv(z, cellWidth);
Random random = new Random(MathUtil.squash(cellX, cellZ) + salt); Random random = new Random((MathUtil.squash(cellX, cellZ) ^ seed) + salt);
int pointX = random.nextInt(width) + cellX * cellWidth; int pointX = random.nextInt(width) + cellX * cellWidth;
int pointZ = random.nextInt(width) + cellZ * cellWidth; int pointZ = random.nextInt(width) + cellZ * cellWidth;