mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-27 12:35:12 +01:00
CompatibleBiome updates.
This commit is contained in:
parent
46c134b453
commit
f91a8eb764
@ -122,6 +122,13 @@ public enum CompatibleBiome {
|
||||
return new LinkedList<>(versions);
|
||||
}
|
||||
|
||||
public Biome getBiome() {
|
||||
for (Version version : versions)
|
||||
if (ServerVersion.isServerVersionAtLeast(version.version))
|
||||
return Biome.valueOf(version.biome);
|
||||
return null;
|
||||
}
|
||||
|
||||
public static CompatibleBiome getBiome(Biome biome) {
|
||||
return biome == null ? null : lookupMap.get(biome.name());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user