Luke100000 / ImmersiveMelodies

Play custom melodies on various instruments and annoy your friends!
Other
4 stars 4 forks source link

Latest verison (0.1.1) causes server to crash, client is fine #51

Closed wobkobi closed 1 month ago

wobkobi commented 1 month ago

Describe the bug launching the server with the latest update crashes the server

Latest.log latest.log

To Reproduce link to server modpack (.mrpack)

Expected behaviour with the mod enabled: Crashes with mod disabled: Perfect

Screenshots If applicable, add screenshots to help explain your problem.

Additional context other mods are listed as being the issue too. but Melodies was consistently showing up after I disabled those mods

Luke100000 commented 1 month ago

Thanks, will check this.

[21May2024 10:12:57.220] [main/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/]: Exception caught during firing event: Attempted to load class net/minecraft/client/multiplayer/ClientLevel for invalid dist DEDICATED_SERVER
    Index: 2
    Listeners:
        0: NORMAL
        1: ASM: net.minecraftforge.registries.DeferredRegister$EventDispatcher@628a1876 handleEvent(Lnet/minecraftforge/registries/RegisterEvent;)V
        2: ASM: net.minecraftforge.registries.DeferredRegister$EventDispatcher@258bb9a0 handleEvent(Lnet/minecraftforge/registries/RegisterEvent;)V
        3: ASM: net.minecraftforge.registries.DeferredRegister$EventDispatcher@6008a094 handleEvent(Lnet/minecraftforge/registries/RegisterEvent;)V
java.lang.RuntimeException: Attempted to load class net/minecraft/client/multiplayer/ClientLevel for invalid dist DEDICATED_SERVER
    at MC-BOOTSTRAP/fmlloader@1.20.1-47.2.17/net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:57)
    at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88)
    at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120)
    at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50)
    at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113)
    at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219)
    at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229)
    at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219)
    at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
    at TRANSFORMER/immersive_melodies@0.1.1+1.20.1/immersive_melodies.Items.lambda$register$0(Items.java:71)