diff options
author | syeyoung <cyoung06@naver.com> | 2023-01-01 01:43:21 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-01-01 12:42:16 +0900 |
commit | d3f5b4df809fd03919952285a1906652097f00e6 (patch) | |
tree | 6ace5531214fb40b0080666f8bd2b291d8e3bb1c /loader/src/main/java | |
parent | de408dbc39b9f07cbbe4d0f2372333226b418903 (diff) | |
download | Skyblock-Dungeons-Guide-d3f5b4df809fd03919952285a1906652097f00e6.tar.gz Skyblock-Dungeons-Guide-d3f5b4df809fd03919952285a1906652097f00e6.tar.bz2 Skyblock-Dungeons-Guide-d3f5b4df809fd03919952285a1906652097f00e6.zip |
- tweaker prevents mod from running ??? Why!!!
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader/src/main/java')
-rwxr-xr-x | loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java | 4 | ||||
-rw-r--r-- | loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/coremod/DGTweaker.java | 23 |
2 files changed, 17 insertions, 10 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java index ed11d7c1..15eee333 100755 --- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java +++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java @@ -55,8 +55,8 @@ import java.util.*; @Mod(modid = Main.MOD_ID, version = Main.VERSION) public class Main { - public static final String MOD_ID = "dungeons_guide_wrapper"; - public static final String VERSION = "1.0"; + public static final String MOD_ID = "dungeons_guide_loader"; + public static final String VERSION = "4.0.0"; public static final String DOMAIN = "https://v2.dungeons.guide/api"; private static Main main; diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/coremod/DGTweaker.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/coremod/DGTweaker.java index 1c1b51d0..5c3e0836 100644 --- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/coremod/DGTweaker.java +++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/coremod/DGTweaker.java @@ -20,28 +20,35 @@ package kr.syeyoung.dungeonsguide.launcher.coremod; import net.minecraft.launchwrapper.ITweaker; import net.minecraft.launchwrapper.LaunchClassLoader; +import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin; import java.io.File; import java.util.List; +import java.util.Map; -public class DGTweaker implements ITweaker { +public class DGTweaker implements IFMLLoadingPlugin { @Override - public void acceptOptions(List<String> args, File gameDir, File assetsDir, String profile) { - + public String[] getASMTransformerClass() { + return new String[] {EventBusTransformer.class.getName()}; } @Override - public void injectIntoClassLoader(LaunchClassLoader classLoader) { - classLoader.registerTransformer(EventBusTransformer.class.getName()); + public String getModContainerClass() { + return null; } @Override - public String getLaunchTarget() { + public String getSetupClass() { return null; } @Override - public String[] getLaunchArguments() { - return new String[0]; + public void injectData(Map<String, Object> map) { + + } + + @Override + public String getAccessTransformerClass() { + return null; } } |