I cant start my friends minecraft server after downloading mr crayfish gun mod and obsufucate because when you try to start the server it crashes and says
[05Jan2023 15:18:16.101] [modloading-worker-1/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/]: Exception caught during firing event: Attempted to load class net/minecraft/client/entity/player/ClientPlayerEntity for invalid dist DEDICATED_SERVER
1285
Index: 1
1286
Listeners:
1287
0: NORMAL
1288
1: net.minecraftforge.eventbus.EventBus$$Lambda$2662/1633038059@3e2999dd
1289
java.lang.RuntimeException: Attempted to load class net/minecraft/client/entity/player/ClientPlayerEntity for invalid dist DEDICATED_SERVER
1290
at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClass(RuntimeDistCleaner.java:71)
1291
at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClass(ILaunchPluginService.java:103)
1292
at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85)
1293
at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:115)
1294
at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:247)
1295
at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:134)
1296
at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:96)
1297
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
1298
at com.mrcrayfish.guns.GunMod.onCommonSetup(GunMod.java:88)
1299
at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:212)
1300
at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:204)
1301
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)
1302
at net.minecraftforge.fml.javafmlmod.FMLModContainer.fireEvent(FMLModContainer.java:106)
1303
at java.util.function.Consumer.lambda$andThen$0(Consumer.java:65)
1304
at java.util.function.Consumer.lambda$andThen$0(Consumer.java:65)
1305
at net.minecraftforge.fml.ModContainer.transitionState(ModContainer.java:112)
1306
at net.minecraftforge.fml.ModList.lambda$null$10(ModList.java:135)
1307
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
1308
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
1309
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
1310
at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
1311
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
1312
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
1313
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:401)
1314
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:734)
1315
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:159)
1316
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:173)
1317
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
1318
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485)
1319
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:650)
1320
at net.minecraftforge.fml.ModList.lambda$dispatchParallelEvent$11(ModList.java:135)
1321
at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1386)
1322
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
1323
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
1324
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
1325
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)
1326
1327
[05Jan2023 15:18:16.104] [modloading-worker-1/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Caught exception during event FMLCommonSetupEvent dispatch for modid cgm
1328
java.lang.RuntimeException: Attempted to load class net/minecraft/client/entity/player/ClientPlayerEntity for invalid dist DEDICATED_SERVER
1329
at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClass(RuntimeDistCleaner.java:71) ~[forge.jar:31.2]
1330
at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClass(ILaunchPluginService.java:103) ~[modlauncher-5.1.2.jar:5.1.2+70+master.2845bb9]
1331
at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) ~[modlauncher-5.1.2.jar:?]
1332
at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:115) ~[modlauncher-5.1.2.jar:?]
1333
at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:247) ~[modlauncher-5.1.2.jar:?]
1334
at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:134) ~[modlauncher-5.1.2.jar:?]
1335
at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:96) ~[modlauncher-5.1.2.jar:?]
1336
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_352]
1337
at com.mrcrayfish.guns.GunMod.onCommonSetup(GunMod.java:88) ~[?:1.0.0-1.15.2]
1338
at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:212) ~[eventbus-2.2.1-service.jar:?]
1339
at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:204) ~[eventbus-2.2.1-service.jar:?]
1340
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.2.1-service.jar:?]
1341
at net.minecraftforge.fml.javafmlmod.FMLModContainer.fireEvent(FMLModContainer.java:106) ~[?:31.2]
1342
at java.util.function.Consumer.lambda$andThen$0(Consumer.java:65) ~[?:1.8.0_352]
1343
at java.util.function.Consumer.lambda$andThen$0(Consumer.java:65) ~[?:1.8.0_352]
1344
at net.minecraftforge.fml.ModContainer.transitionState(ModContainer.java:112) ~[?:?]
1345
at net.minecraftforge.fml.ModList.lambda$null$10(ModList.java:135) ~[?:?]
1346
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:1.8.0_352]
1347
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384) ~[?:1.8.0_352]
1348
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_352]
1349
at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290) ~[?:1.8.0_352]
1350
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731) ~[?:1.8.0_352]
1351
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_352]
1352
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:401) ~[?:1.8.0_352]
1353
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:734) ~[?:1.8.0_352]
1354
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:159) ~[?:1.8.0_352]
1355
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:173) ~[?:1.8.0_352]
1356
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233) ~[?:1.8.0_352]
1357
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) ~[?:1.8.0_352]
1358
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:650) ~[?:1.8.0_352]
1359
at net.minecraftforge.fml.ModList.lambda$dispatchParallelEvent$11(ModList.java:135) ~[?:?]
1360
at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1386) [?:1.8.0_352]
1361
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_352]
1362
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_352]
1363
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_352]
1364
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) [?:1.8.0_352]
17 lines
1382
[05Jan2023 15:18:16.332] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Encountered an unexpected exception
1383
net.minecraftforge.fml.LoadingFailedException: Loading errors encountered: [
1384
MrCrayfish's Gun Mod (cgm) encountered an error during the common_setup event phase
1385
§7Attempted to load class net/minecraft/client/entity/player/ClientPlayerEntity for invalid dist DEDICATED_SERVER
1386
]
1387
at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:218) ~[?:?]
1388
at net.minecraftforge.fml.ModLoader.loadMods(ModLoader.java:156) ~[?:?]
1389
at net.minecraftforge.fml.server.ServerModLoader.begin(ServerModLoader.java:46) ~[?:?]
1390
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:122) ~[?:?]
1391
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:613) [?:?]
1392
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_352]
1393
[05Jan2023 15:18:16.365] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: This crash report has been saved to: /server/./crash-reports/crash-2023-01-05_15.18.16-server.txt
2 lines
1396
[05Jan2023 15:18:16.385] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Exception stopping the server
1397
java.lang.RuntimeException: The server has failed to initialize correctly due to mod loading errors. Examine the crash report for more details.
1398
at net.minecraftforge.common.DimensionManager.getWorld(DimensionManager.java:195) ~[?:?]
1399
at net.minecraft.server.MinecraftServer.func_71218_a(MinecraftServer.java:1004) ~[?:?]
1400
at net.minecraft.server.MinecraftServer.func_213211_a(MinecraftServer.java:536) ~[?:?]
1401
at net.minecraft.server.MinecraftServer.func_71260_j(MinecraftServer.java:568) ~[?:?]
1402
at net.minecraft.server.dedicated.DedicatedServer.func_71260_j(DedicatedServer.java:550) ~[?:?]
1403
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:676) [?:?]
1404
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_352]