This commit is contained in:
hilburn committed 2015-04-07 23:16:53 +01:00
1 parent cf3ce11fc8
commit 2cc4aff86b
21 files changed
+285 -73

No files matched your search

@@ -9,12 +9,16 @@ public class TweakerPlugin {
public static void register(String mod, Class clazz) {
if (Loader.isModLoaded(mod)) {
try {
clazz.newInstance();
isLoaded.add(mod);
} catch (Exception e) {
isLoaded.remove(mod);
}
load(mod, clazz);
}
}
public static void load(String mod, Class clazz) {
try {
clazz.newInstance();
isLoaded.add(mod);
} catch (Exception e) {
isLoaded.remove(mod);
}
}