diff options
author | minecraft7771 <maxim235@gmx.de> | 2023-02-16 21:08:57 +0100 |
---|---|---|
committer | minecraft7771 <maxim235@gmx.de> | 2023-02-16 21:08:57 +0100 |
commit | 5b503c38d1f35874ced360890417e53d6a219eab (patch) | |
tree | 1b206690a0249483f13572cce397585f7a68c306 /src/main/java | |
parent | c1b1d776c52bc1ea04c37552688957ece52cdd1a (diff) | |
download | GT5-Unofficial-5b503c38d1f35874ced360890417e53d6a219eab.tar.gz GT5-Unofficial-5b503c38d1f35874ced360890417e53d6a219eab.tar.bz2 GT5-Unofficial-5b503c38d1f35874ced360890417e53d6a219eab.zip |
Put TT after GT NEI Ore plugin in loading order and moved EOH initialisation to onLoadCompleted
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/github/technus/tectech/TecTech.java | 9 |
1 files changed, 5 insertions, 4 deletions
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; |