Registry simplification

This commit is contained in:
paulevsGitch 2020-11-13 19:38:31 +03:00
parent 47a587f7b8
commit b7afcf1ca5
4 changed files with 8 additions and 29 deletions

View file

@ -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

View file

@ -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) {