From 5b503c38d1f35874ced360890417e53d6a219eab Mon Sep 17 00:00:00 2001 From: minecraft7771 Date: Thu, 16 Feb 2023 21:08:57 +0100 Subject: Put TT after GT NEI Ore plugin in loading order and moved EOH initialisation to onLoadCompleted --- src/main/java/com/github/technus/tectech/TecTech.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/github/technus/tectech/TecTech.java b/src/main/java/com/github/technus/tectech/TecTech.java index 0a1aef7763..4e9d36eee8 100644 --- a/src/main/java/com/github/technus/tectech/TecTech.java +++ b/src/main/java/com/github/technus/tectech/TecTech.java @@ -7,6 +7,7 @@ import java.lang.reflect.Modifier; import java.util.Collection; import java.util.Iterator; +import cpw.mods.fml.common.eventhandler.EventPriority; import net.minecraft.item.ItemStack; import net.minecraftforge.common.MinecraftForge; @@ -52,6 +53,7 @@ import gregtech.common.GT_Proxy; + "required-after:structurelib;" + "after:ComputerCraft;" + "after:OpenComputers;" + + "required-after:gtneioreplugin;" + "required-after:gregtech;" + "after:dreamcraft;" + "after:appliedenergistics2;" @@ -247,12 +249,11 @@ public class TecTech { pEvent.registerServerCommand(new ChargeCommand()); pEvent.registerServerCommand(new MassCommand()); } + } - // This must be done after game load otherwise it fails. + @Mod.EventHandler + public void onLoadCompleted(FMLLoadCompleteEvent event) { eyeOfHarmonyRecipeStorage = new EyeOfHarmonyRecipeStorage(); - // The reason we do this is to force the fields inside the class to instantiate at world load so NEI - // displays properly. - eyeOfHarmonyRecipeStorage.recipeLookUp(new ItemStack(ModBlocks.blocks.get("Ow"))); } public static EyeOfHarmonyRecipeStorage eyeOfHarmonyRecipeStorage = null; -- cgit