ModernFix

ModernFix

93M Downloads

Server reports that certain features of ModernFix are attempting to load client-only Java classes on the server.

MapleSugar365 opened this issue ยท 1 comments

commented

Description:
Although NeoForge prevents these classes from loading and avoids server crashes, this generates a large number of red error messages that flood the console. Can this issue be fixed? Thank you.

Version Information:

  • Minecraft: 1.21.1
  • NeoForge: 21.1.187
  • ModernFix: modernfix-neoforge-5.24.3+mc1.21.1

Error Log Information:
[17:35:52 ERROR] [n.n.f.c.a.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/multiplayer/ClientLevel for invalid dist DEDICATED_SERVER
[17:35:52 ERROR] [STDERR]: java.lang.RuntimeException: Attempted to load class net/minecraft/client/multiplayer/ClientLevel for invalid dist DEDICATED_SERVER
[17:35:52 ERROR] [STDERR]: at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.common.asm.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:60)
[17:35:52 ERROR] [STDERR]: at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:94)
[17:35:52 ERROR] [STDERR]: at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120)
[17:35:52 ERROR] [STDERR]: at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:57)
[17:35:52 ERROR] [STDERR]: at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:190)
[17:35:52 ERROR] [STDERR]: at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.lambda$findClass$20(ModuleClassLoader.java:298)
[17:35:52 ERROR] [STDERR]: at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:311)
[17:35:52 ERROR] [STDERR]: at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:298)
[17:35:52 ERROR] [STDERR]: at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:214)
[17:35:52 ERROR] [STDERR]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
[17:35:52 ERROR] [STDERR]: at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
[17:35:52 ERROR] [STDERR]: at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3578)
[17:35:52 ERROR] [STDERR]: at java.base/java.lang.Class.getMethodsRecursive(Class.java:3719)
[17:35:52 ERROR] [STDERR]: at java.base/java.lang.Class.getMethod0(Class.java:3705)
[17:35:52 ERROR] [STDERR]: at java.base/java.lang.Class.getMethod(Class.java:2393)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.handler$cbb000$scalablelux$initLightAccessState(BlockBehaviour_BlockStateBaseMixin.java:3002)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.initCache(BlockBehaviour_BlockStateBaseMixin.java:492)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.mfix$generateCache(BlockBehaviour_BlockStateBaseMixin.java:1995)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.redirect$zbe000$modernfix$dynamicCacheGen(BlockBehaviour_BlockStateBaseMixin.java:2014)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.getLightBlock(BlockBehaviour_BlockStateBaseMixin.java:522)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.world.level.lighting.LightEngine.hasDifferentLightProperties(LightEngine.java:46)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.world.level.chunk.LevelChunk.setBlockState(LevelChunkMixin.java:263)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.world.level.Level.setBlock(LevelMixin_NeoForge.java:236)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.world.level.Level.setBlock(LevelMixin_NeoForge.java:212)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.world.level.Level.setBlockAndUpdate(LevelMixin_NeoForge.java:328)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/twilightforest.block.TrollsteinnBlock.randomTick(TrollsteinnBlock.java:66)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.randomTick(BlockBehaviour_BlockStateBaseMixin.java:734)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.server.level.ServerLevel.redirect$zod000$lithium$redirectBlockStateTick(ServerLevelMixin.java:4657)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.server.level.ServerLevel.tickChunk(ServerLevelMixin.java:529)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.server.level.ServerChunkCache.tickChunks(ServerChunkCacheMixin.java:371)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCacheMixin.java:321)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.server.level.ServerLevel.tick(ServerLevelMixin.java:379)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.tickChildren(MinecraftServerMixin_NeoForge.java:1037)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServerMixin_NeoForge.java:317)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.tickServer(MinecraftServerMixin_NeoForge.java:917)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.runServer(MinecraftServerMixin_NeoForge.java:707)
[17:35:52 ERROR] [STDERR]: at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServerMixin_NeoForge.java:267)
[17:35:52 ERROR] [STDERR]: at java.base/java.lang.Thread.run(Thread.java:1583)

commented

The mixin loading those classes is from ScalableLux, not ModernFix.