[Fix] getExcludeMatching
just returns Biomes that have the exact type
This commit is contained in:
parent
204f60174b
commit
2bfb7a0687
1 changed files with 6 additions and 3 deletions
|
@ -80,9 +80,12 @@ public class BiomesConfig extends PathConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<String> getExcludeMatching(BiomeAPI.BiomeType type) {
|
public List<String> getExcludeMatching(BiomeAPI.BiomeType type) {
|
||||||
var list = getBiomeExcludeMap().get(type);
|
return getBiomeExcludeMap().entrySet()
|
||||||
if (list == null) return List.of();
|
.stream()
|
||||||
return list;
|
.filter(e -> e.getKey().is(type))
|
||||||
|
.map(e -> e.getValue())
|
||||||
|
.flatMap(Collection::stream)
|
||||||
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue