Pepperoni-Jabroni / MapAtlases

A vanilla-friendly mini-map & world-map mod using vanilla Maps!
GNU General Public License v3.0
24 stars 14 forks source link

Can't open atlas on multiplayer (dedicated server) #130

Open EtienneBOZEC opened 11 months ago

EtienneBOZEC commented 11 months ago

When trying to open the atlas on a server, I get the following error.

java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid dist DEDICATED_SERVER at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:57) ~[fmlloader-1.19.2-43.3.5.jar%2367!/:1.0] {} at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.8.jar%2354!/:?] {} at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.8.jar%2354!/:?] {} at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.8.jar%2354!/:?] {} at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.4.jar:?] {} at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:?] {} at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.4.jar:?] {} at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:?] {} at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.4.jar:?] {} at java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?] {} at net.minecraftforge.network.simple.SimpleChannel.sendToServer(SimpleChannel.java:87) ~[forge-1.19.2-43.3.5-universal.jar%23454!/:?] {re:mixin,re:classloading,pl:mixin:APP:connectivity.mixins.json:SimpleChannelMixin,pl:mixin:A} at pepjebs.mapatlases.networking.MapAtlasesNetworking.sendToServer(MapAtlasesNetworking.java:64) ~[map_atlases-1.19-5.6.5-all.jar%23366!/:1.19-5.6.5] {re:classloading} at pepjebs.mapatlases.item.MapAtlasItem.m7203(MapAtlasItem.java:136) ~[map_atlases-1.19-5.6.5-all.jar%23366!/:1.19-5.6.5] {re:mixin,re:classloading} at net.minecraft.world.item.ItemStack.m41682(ItemStack.java:266) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,xf:fml:forge:itemstack,re:classloading,xf:fml:forge:itemstack,pl:mixin:APP:redirector.mixins.json:net.minecraft.world.item.ItemStackMixin,pl:mixin:APP:placebo.mixins.json:ItemStackMixin,pl:mixin:APP:itemfilters-common.mixins.json:ItemStackMixin,pl:mixin:APP:tarotcards.mixins.json:ItemStackMixin,pl:mixin:APP:necronomicon.forge.mixins.json:AnimatedItemNameMixin,pl:mixin:APP:quark.mixins.json:ItemStackMixin,pl:mixin:A} at net.minecraft.server.level.ServerPlayerGameMode.m6261(ServerPlayerGameMode.java:286) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,re:computing_frames,re:classloading,pl:mixin:APP:sanitydim.mixins.json:MixinServerPlayerGameMode,pl:mixin:APP:mixins.immersivemc.json:ServerPlayerGameModeMixin,pl:mixin:APP:item_obliterator.mixins.json:InteractionManagerMixin,pl:mixin:A} at net.minecraft.server.network.ServerGamePacketListenerImpl.m5760(ServerGamePacketListenerImpl.java:1089) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.network.protocol.game.ServerboundUseItemPacket.m5797(ServerboundUseItemPacket.java:29) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:classloading} at net.minecraft.network.protocol.game.ServerboundUseItemPacket.m5797(ServerboundUseItemPacket.java:7) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:classloading} at net.minecraft.network.protocol.PacketUtils.m131356(PacketUtils.java:22) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,re:classloading} at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:classloading,re:mixin} at net.minecraft.util.thread.BlockableEventLoop.m6367(BlockableEventLoop.java:157) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B} at net.minecraft.util.thread.ReentrantBlockableEventLoop.m6367(ReentrantBlockableEventLoop.java:23) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,re:computing_frames,re:classloading} at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:763) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:157) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.util.thread.BlockableEventLoop.m7245(BlockableEventLoop.java:131) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.m129961(MinecraftServer.java:746) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.server.MinecraftServer.m7245(MinecraftServer.java:740) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.util.thread.BlockableEventLoop.m18699(BlockableEventLoop.java:116) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.m130012(MinecraftServer.java:725) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.server.MinecraftServer.m130011(MinecraftServer.java:658) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.server.MinecraftServer.m206580(MinecraftServer.java:244) ~[server-1.19.2-20220805.130853-srg.jar%23449!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at java.lang.Thread.run(Thread.java:1583) [?:?] {re:mixin}

The server is running java 21 on linux. Mod works fine in a local world. This does not crash the server, but it makes it impossible to open the actual atlas