9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-27 19:19:07 +00:00

Fix Rarity, Strings do not implement IRare

This commit is contained in:
Daniel Mills
2021-07-16 01:39:28 -04:00
parent 2da8ffb8cd
commit eef548f6a1
4 changed files with 38 additions and 30 deletions

View File

@@ -124,6 +124,23 @@ public class ResourceLoader<T extends IrisRegistrant> {
}
}
public KList<T> loadAll(KList<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);
}