From fe86e1f35308b41eb0712b0c0ef731d18e875fe9 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sun, 7 Feb 2021 23:03:51 -0600 Subject: [PATCH] Separate the core mod from the main project. It should be imported in the referenced libraries. --- Readme.txt | 7 ++--- src/main/java/backsun/lod/LodCore.java | 8 ----- src/main/java/backsun/lod/LodMain.java | 42 ++------------------------ src/main/resources/mcmod.info | 2 +- 4 files changed, 6 insertions(+), 53 deletions(-) delete mode 100644 src/main/java/backsun/lod/LodCore.java diff --git a/Readme.txt b/Readme.txt index 366a7a2b9..d415dc4a3 100644 --- a/Readme.txt +++ b/Readme.txt @@ -17,13 +17,12 @@ Step 3: run the command: "./gradlew eclipse" Step 4: Import project -Step 5: create a system variable called "JAVA_MC_HOME" with the location of the JDK 1.8.0_251 (This is needed for gradle to work correctly) +Step 5: Create a system variable called "JAVA_MC_HOME" with the location of the JDK 1.8.0_251 (This is needed for gradle to work correctly) And make sure it is used in the build.gradle file. -Step 6: In the eclipse run configuration add "-Dfml.coreMods.load=backsun.lod.LodMain" - This lets forge know that you have a core mod you want to run. +Step 6: Import the lodcore and lodcore_source jar files into the referenced libraries. -Step 7: make sure the eclipse has the JDK 1.8.0_251 installed. (This is needed so that eclipse can run minecraft) +Step 6: Make sure the eclipse has the JDK 1.8.0_251 installed. (This is needed so that eclipse can run minecraft) Other commands: diff --git a/src/main/java/backsun/lod/LodCore.java b/src/main/java/backsun/lod/LodCore.java deleted file mode 100644 index 50bac22b3..000000000 --- a/src/main/java/backsun/lod/LodCore.java +++ /dev/null @@ -1,8 +0,0 @@ -package backsun.lod; - -// -Dfml.coreMods.load=backsun.lod.LodCore - -public class LodCore -{ - -} diff --git a/src/main/java/backsun/lod/LodMain.java b/src/main/java/backsun/lod/LodMain.java index 8941e48ce..8b6133f65 100644 --- a/src/main/java/backsun/lod/LodMain.java +++ b/src/main/java/backsun/lod/LodMain.java @@ -1,8 +1,5 @@ package backsun.lod; -import java.util.Map; - -import backsun.lod.asm.RenderGlobalClassTransformer; import backsun.lod.proxy.ClientProxy; import backsun.lod.proxy.CommonProxy; import backsun.lod.util.Reference; @@ -24,8 +21,8 @@ import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin; */ @IFMLLoadingPlugin.MCVersion("1.12.2") @IFMLLoadingPlugin.TransformerExclusions({"backsun.lod.asm"}) -@Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION) -public class LodMain implements IFMLLoadingPlugin +@Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION, dependencies = "required-after:lodcore") +public class LodMain { @Instance public static LodMain instance; @@ -52,39 +49,4 @@ public class LodMain implements IFMLLoadingPlugin { } - - - - - // required for IFMLLoadingPlugin - - @Override - public String[] getASMTransformerClass() - { - return new String[] { RenderGlobalClassTransformer.class.getName() }; - } - - @Override - public String getModContainerClass() - { - // unneeded since we are also running a normal mod - return null; - } - - @Override - public String getSetupClass() { - // TODO Auto-generated method stub - return null; - } - - @Override - public void injectData(Map data) { - // TODO Auto-generated method stub - } - - @Override - public String getAccessTransformerClass() { - // TODO Auto-generated method stub - return null; - } } diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index 33bd657ca..becfc510c 100644 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -11,6 +11,6 @@ "credits": "TechnoVision for his modding tutorial.", "logoFile": "", "screenshots": [], - "dependencies": [] + "dependencies": ["lodcore"] } ]