Use XoRoShiRo128PlusPlusRandom instead of XoRoShiRo128PlusRandom

This commit is contained in:
Bud Gidiere
2020-11-19 17:38:45 -06:00
parent 3915cad372
commit bb4ecee1f8
14 changed files with 32 additions and 43 deletions

View File

@@ -1,6 +1,6 @@
package com.dfsek.terra.procgen;
import it.unimi.dsi.util.XoRoShiRo128PlusRandom;
import it.unimi.dsi.util.XoRoShiRo128PlusPlusRandom;
import org.bukkit.util.Vector;
import org.polydev.gaea.math.MathUtil;
@@ -54,7 +54,7 @@ public class GridSpawn {
* @return Vector representing spawnpoint
*/
public Vector getChunkSpawn(int structureChunkX, int structureChunkZ, long seed) {
Random r = new XoRoShiRo128PlusRandom(MathUtil.getCarverChunkSeed(structureChunkX, structureChunkZ, seed));
Random r = new XoRoShiRo128PlusPlusRandom(MathUtil.getCarverChunkSeed(structureChunkX, structureChunkZ, seed));
int offsetX = r.nextInt(width);
int offsetZ = r.nextInt(width);
int sx = structureChunkX * (width + 2 * separation) + offsetX;