[BUG] Doesn't work on servers?
adoetho opened this issue ยท 0 comments
Can't launch on servers.
18.04 12:17:08 [Server] INFO Thread: main
18.04 12:17:08 [Server] INFO Suspected Mods: NONE
18.04 12:17:08 [Server] INFO Stacktrace:
18.04 12:17:08 [Server] INFO at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:57) ~[fmlloader-1.19.2-43.3.9.jar%2367!/:1.0] {}
18.04 12:17:08 [Server] INFO -- MOD battleshields --
18.04 12:17:08 [Server] INFO Details:
18.04 12:17:08 [Server] INFO Caused by 0: java.lang.BootstrapMethodError: java.lang.RuntimeException: Attempted to load class net/minecraft/client/player/AbstractClientPlayer for invalid dist DEDICATED_SERVER
18.04 12:17:08 [Server] INFO at me.maxish0t.battleshields.common.init.ModEntities.(ModEntities.java:20) ~[BattleShieldsMC-1.19.2-1.0.1.jar%23193!/:1.0.1] {re:classloading}
18.04 12:17:08 [Server] INFO at me.maxish0t.battleshields.common.init.ModRegistries.register(ModRegistries.java:23) ~[BattleShieldsMC-1.19.2-1.0.1.jar%23193!/:1.0.1] {re:classloading}
18.04 12:17:08 [Server] INFO at me.maxish0t.battleshields.BattleShields.(BattleShields.java:11) ~[BattleShieldsMC-1.19.2-1.0.1.jar%23193!/:1.0.1] {re:classloading}
18.04 12:17:08 [Server] INFO at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] {}
18.04 12:17:08 [Server] INFO at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] {}
18.04 12:17:08 [Server] INFO at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?] {}
18.04 12:17:08 [Server] INFO at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:70) ~[javafmllanguage-1.19.2-43.3.9.jar%23269!/:?] {}
18.04 12:17:08 [Server] INFO at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:122) ~[fmlcore-1.19.2-43.3.9.jar%23268!/:?] {}
18.04 12:17:08 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {re:computing_frames}
18.04 12:17:08 [Server] INFO at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:computing_frames}
18.04 12:17:08 [Server] INFO at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {}
18.04 12:17:08 [Server] INFO Mod File: /mods/BattleShieldsMC-1.19.2-1.0.1.jar
18.04 12:17:08 [Server] INFO Failure message: Battle Shields (battleshields) has failed to load correctly
18.04 12:17:08 [Server] INFO java.lang.BootstrapMethodError: java.lang.RuntimeException: Attempted to load class net/minecraft/client/player/AbstractClientPlayer for invalid dist DEDICATED_SERVER
18.04 12:17:08 [Server] INFO Mod Version: 1.0.1
18.04 12:17:08 [Server] INFO Mod Issue URL: https://github.com/MaxSaleh/Battle-Shields/issues
18.04 12:17:08 [Server] INFO Exception message: java.lang.RuntimeException: Attempted to load class net/minecraft/client/player/AbstractClientPlayer for invalid dist DEDICATED_SERVER
18.04 12:17:08 [Server] INFO Stacktrace:
18.04 12:17:08 [Server] INFO at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:57) ~[fmlloader-1.19.2-43.3.9.jar%2367!/:1.0] {}
18.04 12:17:08 [Server] INFO at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.8.jar%2354!/:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.8.jar%2354!/:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.8.jar%2354!/:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.4.jar:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.4.jar:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.4.jar:?] {}
18.04 12:17:08 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.lang.ClassLoader.defineClass(ClassLoader.java:1017) ~[?:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:119) ~[securejarhandler-2.1.4.jar:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.4.jar:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:?] {}
18.04 12:17:08 [Server] INFO at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.4.jar:?] {}
18.04 12:17:08 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?] {}
18.04 12:17:08 [Server] INFO at me.maxish0t.battleshields.common.init.ModEntities.(ModEntities.java:20) ~[BattleShieldsMC-1.19.2-1.0.1.jar%23193!/:1.0.1] {re:classloading}
18.04 12:17:08 [Server] INFO at me.maxish0t.battleshields.common.init.ModRegistries.register(ModRegistries.java:23) ~[BattleShieldsMC-1.19.2-1.0.1.jar%23193!/:1.0.1] {re:classloading}
18.04 12:17:08 [Server] INFO at me.maxish0t.battleshields.BattleShields.(BattleShields.java:11) ~[BattleShieldsMC-1.19.2-1.0.1.jar%23193!/:1.0.1] {re:classloading}
18.04 12:17:08 [Server] INFO at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] {}
18.04 12:17:08 [Server] INFO at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] {}
18.04 12:17:08 [Server] INFO at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?] {}
18.04 12:17:08 [Server] INFO at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:70) ~[javafmllanguage-1.19.2-43.3.9.jar%23269!/:?] {}
18.04 12:17:08 [Server] INFO at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:122) ~[fmlcore-1.19.2-43.3.9.jar%23268!/:?] {}
18.04 12:17:08 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {}
18.04 12:17:08 [Server] INFO at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {re:computing_frames}
18.04 12:17:08 [Server] INFO at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:computing_frames}
18.04 12:17:08 [Server] INFO at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {}