mirror of
https://github.com/GTNewHorizons/Advanced-Botany.git
synced 2026-11-12 16:37:53 +00:00
Error solved
This commit is contained in:
1 parent
91fa3fcbd0
commit
62cf59acbd
1 file changed
+6
-15
@@ -1,36 +1,27 @@
|
||||
package ab.common.utils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import ab.common.lib.register.RecipeListAB;
|
||||
|
||||
public class ModHelperManager {
|
||||
|
||||
private static List<IModHelper> helpers;
|
||||
private static IModHelper helper;
|
||||
|
||||
public static void preInit() {
|
||||
setupHelpers();
|
||||
|
||||
for (IModHelper helper : helpers) {
|
||||
helper.preInit();
|
||||
}
|
||||
helper.preInit();
|
||||
}
|
||||
|
||||
public static void init() {
|
||||
for (IModHelper helper : helpers) {
|
||||
helper.init();
|
||||
}
|
||||
// helper.init();
|
||||
}
|
||||
|
||||
public static void postInit() {
|
||||
for (IModHelper helper : helpers) {
|
||||
helper.postInit();
|
||||
}
|
||||
helper.postInit();
|
||||
}
|
||||
|
||||
private static void setupHelpers() {
|
||||
helpers = new ArrayList<>();
|
||||
helpers.add(new RecipeListAB());
|
||||
|
||||
helper = new RecipeListAB();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user