mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-16 18:55:02 +00:00
Mek v8
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user