mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-20 04:19:44 +00:00
Code cleanup
This commit is contained in:
1 parent
3990a81390
commit
39e415b36d
5 files changed
+106
-47
No files matched your search
@@ -5,15 +5,15 @@ import java.util.ArrayList;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
|
||||
public class TweakerPlugin {
|
||||
private static ArrayList<String> isLoaded = new ArrayList();
|
||||
private static ArrayList<String> isLoaded = new ArrayList<String>();
|
||||
|
||||
public static void register(String mod, Class clazz) {
|
||||
public static void register(String mod, Class<?> clazz) {
|
||||
if (Loader.isModLoaded(mod)) {
|
||||
load(mod, clazz);
|
||||
}
|
||||
}
|
||||
|
||||
public static void load(String mod, Class clazz) {
|
||||
public static void load(String mod, Class<?> clazz) {
|
||||
try {
|
||||
clazz.newInstance();
|
||||
isLoaded.add(mod);
|
||||
|
||||
Reference in new issue
Block a user