mirror of
https://github.com/craftaro/EpicSpawners.git
synced 2025-01-08 11:37:51 +08:00
Allow for entities to spawn in a single biome.
This commit is contained in:
parent
ea43620adb
commit
2773c1dff0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user