mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 16:35:50 +00:00
fix references in TerraBiomeSource
This commit is contained in:
parent
09416bc34c
commit
05a0c28a1c
@ -43,11 +43,9 @@ public class TerraBiomeSource extends BiomeSource {
|
|||||||
private final long seed;
|
private final long seed;
|
||||||
private ConfigPack pack;
|
private ConfigPack pack;
|
||||||
|
|
||||||
private final Map<Biome, net.minecraft.world.biome.Biome> terraToMinecraft = new ConcurrentHashMap<>();
|
|
||||||
|
|
||||||
public TerraBiomeSource(Registry<net.minecraft.world.biome.Biome> biomes, long seed, ConfigPack pack) {
|
public TerraBiomeSource(Registry<net.minecraft.world.biome.Biome> biomes, long seed, ConfigPack pack) {
|
||||||
super(biomes.stream()
|
super(biomes.streamEntries()
|
||||||
.filter(biome -> Objects.requireNonNull(biomes.getId(biome))
|
.filter(biome -> Objects.requireNonNull(biomes.getId(biome.value()))
|
||||||
.getNamespace()
|
.getNamespace()
|
||||||
.equals("terra")) // Filter out non-Terra biomes.
|
.equals("terra")) // Filter out non-Terra biomes.
|
||||||
.collect(Collectors.toList()));
|
.collect(Collectors.toList()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user