[Fix] getExcludeMatching just returns Biomes that have the exact type

This commit is contained in:
Frank 2022-07-02 20:16:17 +02:00
parent 204f60174b
commit 2bfb7a0687

View file

@ -80,9 +80,12 @@ public class BiomesConfig extends PathConfig {
}
public List<String> getExcludeMatching(BiomeAPI.BiomeType type) {
var list = getBiomeExcludeMap().get(type);
if (list == null) return List.of();
return list;
return getBiomeExcludeMap().entrySet()
.stream()
.filter(e -> e.getKey().is(type))
.map(e -> e.getValue())
.flatMap(Collection::stream)
.toList();
}