Allow for entities to spawn in a single biome.

This commit is contained in:
Brianna 2021-06-01 12:08:43 -05:00
parent ea43620adb
commit 2773c1dff0

View File

@ -14,7 +14,7 @@ public class SpawnConditionBiome implements SpawnCondition {
private final Set<Biome> biomes;
public SpawnConditionBiome(Biome... biomes) {
this.biomes = (biomes.length > 1) ? EnumSet.of(biomes[0], biomes) : EnumSet.noneOf(Biome.class);
this.biomes = (biomes.length >= 1) ? EnumSet.of(biomes[0], biomes) : EnumSet.noneOf(Biome.class);
}
public SpawnConditionBiome(Set<Biome> biomes) {