mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-12 02:36:18 +00:00
Use FastRandom in populators, fix issues with flora/tree pop
This commit is contained in:
11
src/main/java/com/dfsek/terra/util/PopulationUtil.java
Normal file
11
src/main/java/com/dfsek/terra/util/PopulationUtil.java
Normal 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()));
|
||||
}
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user