Fix Rarity, Strings do not implement IRare

This commit is contained in:
Daniel Mills committed 2021-07-16 01:39:28 -04:00
1 parent 2da8ffb8cd
commit eef548f6a1
4 files changed
+38 -30

No files matched your search

@@ -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);
}