diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-05 23:39:09 +0900 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-05 23:39:09 +0900 |
commit | 54d915940ee0856bc7cac4a37687cb7783e07cee (patch) | |
tree | f5952503eb3bc095914f4f77b81531ab2c050d90 /versions/src/main/java/cc/polyfrost/oneconfig/test | |
parent | 6cafd268d486a930c7e8bec229c30eb6a50fe436 (diff) | |
parent | 206063acf3a6e0edc0d16b07d206aa36207b42d4 (diff) | |
download | OneConfig-54d915940ee0856bc7cac4a37687cb7783e07cee.tar.gz OneConfig-54d915940ee0856bc7cac4a37687cb7783e07cee.tar.bz2 OneConfig-54d915940ee0856bc7cac4a37687cb7783e07cee.zip |
Merge branch 'self' of https://github.com/nxtdaydelivery/OneConfig into nextdaydelivery-self
Diffstat (limited to 'versions/src/main/java/cc/polyfrost/oneconfig/test')
-rw-r--r-- | versions/src/main/java/cc/polyfrost/oneconfig/test/TestMod_Test.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/versions/src/main/java/cc/polyfrost/oneconfig/test/TestMod_Test.java b/versions/src/main/java/cc/polyfrost/oneconfig/test/TestMod_Test.java index ab7587e..0d2fb87 100644 --- a/versions/src/main/java/cc/polyfrost/oneconfig/test/TestMod_Test.java +++ b/versions/src/main/java/cc/polyfrost/oneconfig/test/TestMod_Test.java @@ -1,14 +1,20 @@ package cc.polyfrost.oneconfig.test; -import net.minecraftforge.fml.common.Mod; -import net.minecraftforge.fml.common.event.FMLInitializationEvent; +import cc.polyfrost.oneconfig.events.EventManager; +import cc.polyfrost.oneconfig.events.event.InitializationEvent; +import cc.polyfrost.oneconfig.libs.eventbus.Subscribe; +//#if MC<=11202 @net.minecraftforge.fml.common.Mod(modid = "oneconfig-test-mod", name = "Test Mod", version = "0") +//#endif public class TestMod_Test { private TestConfig_Test config; + public TestMod_Test() { + EventManager.INSTANCE.register(this); + } - @Mod.EventHandler - public void init(FMLInitializationEvent event) { + @Subscribe + public void init(InitializationEvent e) { config = new TestConfig_Test(); } }
\ No newline at end of file |