mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Load all biomes for data packs, not just thought used ones
This commit is contained in:
parent
7f1fae307c
commit
ac85c75cc4
@ -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);
|
||||
}
|
||||
|
@ -415,17 +415,7 @@ public class IrisDimension extends IrisRegistrant {
|
||||
}
|
||||
|
||||
public KList<IrisBiome> getAllBiomes(DataProvider g) {
|
||||
KList<IrisBiome> r = new KList<>();
|
||||
|
||||
for (IrisRegion i : getAllRegions(g)) {
|
||||
if (i == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
r.addAll(i.getAllBiomes(g));
|
||||
}
|
||||
|
||||
return r;
|
||||
return g.getData().getBiomeLoader().loadAll(g.getData().getBiomeLoader().getPossibleKeys());
|
||||
}
|
||||
|
||||
public KList<IrisBiome> getAllAnyBiomes() {
|
||||
|
@ -35,7 +35,7 @@ public class MultiBurst {
|
||||
}
|
||||
|
||||
public MultiBurst(String name, int priority, int tc) {
|
||||
service = Executors.newFixedThreadPool(tc, r -> {
|
||||
service = Executors.newFixedThreadPool(Math.max(tc, 1), r -> {
|
||||
tid++;
|
||||
Thread t = new Thread(r);
|
||||
t.setName(name + " " + tid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user