Some more minor fixes

This commit is contained in:
Frank 2022-04-03 23:48:35 +02:00
parent 1cdbcacd7b
commit 7cf60dc206
2 changed files with 4 additions and 2 deletions

View file

@ -75,7 +75,8 @@ public class OldBulbisGardens extends EndBiome.Config {
}
for (MobCategory group : MobCategory.values()) {
List<SpawnerData> list = biome.getMobSettings()
List<SpawnerData> list = biome.value()
.getMobSettings()
.getMobs(group)
.unwrap();
list.forEach((entry) -> {
@ -83,7 +84,7 @@ public class OldBulbisGardens extends EndBiome.Config {
});
}
List<HolderSet<PlacedFeature>> features = biome.getGenerationSettings()
List<HolderSet<PlacedFeature>> features = biome.value().getGenerationSettings()
.features();
HolderSet<PlacedFeature> vegetal = features.get(Decoration.VEGETAL_DECORATION.ordinal());
if (vegetal.size() > 2) {

View file

@ -45,6 +45,7 @@ public class MinecraftClientMixin {
else {
Music sound = this.level.getBiomeManager()
.getNoiseBiomeAtPosition(this.player.blockPosition())
.value()
.getBackgroundMusic()
.orElse(Musics.END);
info.setReturnValue(sound);