Structure location is fast now

This commit is contained in:
dfsek
2020-10-08 22:44:12 -07:00
parent 6ec7ab9c72
commit 506e1e0e23
6 changed files with 65 additions and 13 deletions

View File

@@ -49,7 +49,7 @@ public class GridSpawn {
* @param seed Seed for RNG
* @return Vector representing spawnpoint
*/
private Vector getChunkSpawn(int structureChunkX, int structureChunkZ, long seed) {
public Vector getChunkSpawn(int structureChunkX, int structureChunkZ, long seed) {
Random r = new Random(MathUtil.getCarverChunkSeed(structureChunkX, structureChunkZ, seed));
int offsetX = r.nextInt(width);
int offsetZ = r.nextInt(width);