Skip to content

Commit 84da8f0

Browse files
committed
Revert "no more coremod :crabrave:"
I'm an idiot. It needs to be a coremod otherwise forge does not add it to the classpath (bruh moment #2)
1 parent 0848ee1 commit 84da8f0

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ mixinPreinitConfig =
7373
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
7474
# This parameter is for legacy compatability only
7575
# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin
76-
coreModClass =
76+
coreModClass = internal.CoreLoadingPlugin
7777
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
7878
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
7979
containsMixinsAndOrCoreModOnly = false

src/main/java/com/falsepattern/lib/config/ConfigurationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import cpw.mods.fml.common.FMLCommonHandler;
99
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
1010

11-
import java.io.File;
1211
import java.lang.reflect.Field;
1312
import java.lang.reflect.InvocationTargetException;
1413
import java.nio.file.Path;
@@ -26,6 +25,7 @@
2625
import lombok.SneakyThrows;
2726
import lombok.val;
2827
import lombok.var;
28+
import net.minecraft.launchwrapper.Launch;
2929
import net.minecraftforge.common.config.ConfigElement;
3030
import net.minecraftforge.common.config.Configuration;
3131

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package com.falsepattern.lib.internal;
2+
3+
import com.falsepattern.lib.config.ConfigurationManager;
4+
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
5+
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;
6+
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.Name;
7+
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.SortingIndex;
8+
import java.io.File;
9+
import java.util.Map;
10+
11+
@MCVersion("1.7.10")
12+
@Name(Tags.MODID)
13+
@SortingIndex(500)
14+
public class CoreLoadingPlugin implements IFMLLoadingPlugin {
15+
16+
@Override
17+
public String[] getASMTransformerClass() {
18+
return null;
19+
}
20+
21+
@Override
22+
public String getModContainerClass() {
23+
return null;
24+
}
25+
26+
@Override
27+
public String getSetupClass() {
28+
return null;
29+
}
30+
31+
@Override
32+
public void injectData(Map<String, Object> data) {
33+
}
34+
35+
@Override
36+
public String getAccessTransformerClass() {
37+
return null;
38+
}
39+
}

0 commit comments

Comments
 (0)