mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-16 18:55:02 +00:00
Fixed a few mods reloading
This commit is contained in:
1 parent
c757841e06
commit
0f461a7815
27 files changed
+1316
-1231
No files matched your search
@@ -6,6 +6,8 @@ import cpw.mods.fml.common.Loader;
|
||||
|
||||
public class TweakerPlugin {
|
||||
private static ArrayList<String> isLoaded = new ArrayList();
|
||||
|
||||
public static boolean hasInit = false;
|
||||
|
||||
public static void register(String mod, Class clazz) {
|
||||
if (Loader.isModLoaded(mod)) {
|
||||
@@ -25,4 +27,8 @@ public class TweakerPlugin {
|
||||
public static boolean isLoaded(String string) {
|
||||
return isLoaded.contains(string);
|
||||
}
|
||||
|
||||
public static boolean hasInit(){
|
||||
return hasInit;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user