Registry simplification
This commit is contained in:
parent
47a587f7b8
commit
b7afcf1ca5
4 changed files with 8 additions and 29 deletions
|
@ -80,13 +80,14 @@ public class BetterEndBiomeSource extends BiomeSource {
|
|||
return barrens;
|
||||
}
|
||||
|
||||
EndBiome netherBiome = height < -10F ? mapVoid.getBiome(biomeX << 2, biomeZ << 2) : mapLand.getBiome(biomeX << 2, biomeZ << 2);
|
||||
EndBiome endBiome = height < -10F ? mapVoid.getBiome(biomeX << 2, biomeZ << 2) : mapLand.getBiome(biomeX << 2, biomeZ << 2);
|
||||
if (biomeX == 0 && biomeZ == 0) {
|
||||
mapLand.clearCache();
|
||||
mapVoid.clearCache();
|
||||
}
|
||||
|
||||
return biomeRegistry.getOrThrow(EndBiomes.getBiomeKey(netherBiome));
|
||||
System.out.println(endBiome.getID());
|
||||
return biomeRegistry.get(endBiome.getID());//EndBiomes.getActualBiome(endBiome);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -17,8 +17,8 @@ public class BiomePicker {
|
|||
public void addBiome(EndBiome biome) {
|
||||
biomes.add(biome);
|
||||
maxChance = biome.mutateGenChance(maxChance);
|
||||
biomeCount ++;
|
||||
maxChanceUnmutable = maxChance;
|
||||
biomeCount ++;
|
||||
}
|
||||
|
||||
public void addBiomeMutable(EndBiome biome) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue