Use FastRandom in populators, fix issues with flora/tree pop

This commit is contained in:
dfsek
2020-11-22 20:20:26 -07:00
parent 2b5fd16e4a
commit 7509c03cbd
9 changed files with 28 additions and 17 deletions

View File

@@ -0,0 +1,11 @@
package com.dfsek.terra.util;
import org.bukkit.Chunk;
import org.polydev.gaea.math.MathUtil;
import org.polydev.gaea.util.FastRandom;
public final class PopulationUtil {
public static FastRandom getRandom(Chunk c) {
return new FastRandom(MathUtil.getCarverChunkSeed(c.getX(), c.getZ(), c.getWorld().getSeed()));
}
}

View File

@@ -15,7 +15,7 @@ import java.util.stream.Collectors;
import java.util.stream.Stream;
@SuppressWarnings("unchecked")
public class TagUtil {
public final class TagUtil {
private static final Map<String, Set<Material>> tagMap;
static {