mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-20 23:36:52 +00:00
Fix Rarity, Strings do not implement IRare
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user