Load all biomes for data packs, not just thought used ones

This commit is contained in:
Daniel Mills committed 2021-07-24 11:49:47 -04:00
1 parent 7f1fae307c
commit ac85c75cc4
3 files changed
+16 -12

No files matched your search

@@ -178,6 +178,20 @@ public class ResourceLoader<T extends IrisRegistrant> {
return m;
}
public KList<T> loadAll(String[] s) {
KList<T> m = new KList<>();
for (String i : s) {
T t = load(i);
if (t != null) {
m.add(t);
}
}
return m;
}
public T load(String name) {
return load(name, true);
}