ITADN

[Bug] Attempted to load class net/minecraft/client/multiplayer/ClientLevel for invalid dist DEDICATED_SERVER

#913OpenJACKWULA123 创建于 2025-09-29
bug
J
JACKWULA123commented
### Observed behaviour I have a server running. When some player(with a tetra tool) joins, these two messages show again and again, and the server becomes lagged and will be forced to shutdown latter. [14:38:26] [Server thread/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/multiplayer/ClientLevel for invalid dist DEDICATED_SERVER [14:38:26] [Server thread/WARN] [Radium Class Analysis/]: Radium Class Analysis Error: Classse.mickelus.tetra.blocks.multischematic.MultiblockSchematicBlock cannot be analysed, because getting declared methods crashes with RuntimeException: Attempted to load class net/minecraft/client/multiplayer/ClientLevel for invalid dist DEDICATED_SERVER. This is usually caused by modded entities declaring methods that have a return type or parameter type that is annotated with @OnlyIn(Dist.CLIENT). Loading the type is not possible, because it only exists in the CLIENT environment. The recommended fix is to annotate the method with this argument or return type with the same annotation. Lithium handles this error by assuming the class cannot be included in some optimizations Game version:1.20.1, forge:47.3.12, tetra:6.11.0, mutil:6.2.0 full mod list: 14:37:39.151] [main/INFO] [Puzzles Lib/]: Loading 161 mods: - accelerateddecay 3.0.1+mc1.20.1 - alexscaves 2.0.2 - alltheleaks 0.1.0-beta+1.20.1-forge |-- mixinextras 0.4.1 \-- mixinsquared 0.2.0 - almostunified 1.20.1-0.9.4 - alternate_current 1.7.0 - amendments 1.20-1.2.18 - another_furniture 1.20.1-3.0.1 - architectury 9.2.14 - artifacts 9.5.13 \-- expandability 9.0.4 - attributefix 21.0.4 - autoleveling 1.19b - balancedflight 1.20.1_v2.2.0 - balm 7.3.17 \-- kuma_api 20.1.9-SNAPSHOT - better_beacons 1.1.1 - better_totem_of_undying 1.2.0 - betterarcheology 1.2.1-1.20.1 - bettergolem 1.20.1-4.0.1 - bettermineshafts 1.20-Forge-4.0.4 - bookshelf 20.2.13 - caelus 3.2.0+1.20.1 - cerbons_api 1.0.0 - citadel 2.6.1 - cloth_config 11.1.136 - computercraft 1.113.1 - connectivity 1.20.1-6.8 - constructionwand 1.20.1-2.11 - copperandtuffbackport 1.2 - copycats 2.2.0+mc.1.20.1-forge - create 0.5.1.j \-- flywheel 0.6.11-13 - create_central_kitchen 1.3.12 \-- create_dragon_lib 1.4.3 - create_enchantment_industry 1.2.9.d - create_fluid 1.0.0 - create_pattern_schematics 1.1.19+forge-1.20.1 - create_wizardry 0.2.3 - createaddition 1.20.1-1.2.5 - createbigcannons 5.8.2 \-- ritchiesprojectilelib 2.0.0-dev+mc.1.20.1-forge-build.182 - createcobblestone 1.4.3+forge-1.20.1-87 - createdeco 2.0.2-1.20.1-forge - createdieselgenerators 1.20.1-1.2i - createendertransmission 2.0.7-1.20.1 - createliquidfuel 2.1.1-1.20.1 - createlowheated 1.20.1-0.5.1.f-i - createrailwaysnavigator 1.20.1-beta-0.7.2 \-- dragonlib 1.20.1-2.2.24 - createutilities 0.3.0+1.20.1 - creeper_firework 2.1.0.b - crystal_clear 2.1-Beta - ctov 3.4.11 - cupboard 1.20.1-2.7 - curios 5.11.0+1.20.1 - customvillagertrades 20.25.0 - dragonmounts 1.2.3-beta - dummmmmmy 1.20-2.0.2 - dungeons_arise_seven_seas 1.0.2 - enchantinginfuser 8.0.3 - ends_delight 2.5.1+forge.1.20.1 - enhancedai 2.5.3 - explorerscompass 1.20.1-1.3.3-forge - explorify 1.6.2 - farmersdelight 1.20.1-1.2.7 - ferritecore 6.0.1 - flatbedrock 3.0.1-build.18+mc1.20.1 - forge 47.3.12 - fruitsdelight 1.0.16 |-- l2harvester 0.0.4 \-- l2library 2.4.11 - ftbchunks 2001.3.5 - ftblibrary 2001.2.7 - ftbquests 2001.4.9 - ftbteams 2001.3.0 - ftbultimine 2001.1.5 - ftbxmodcompat 2.1.2 - functionalstorage 1.20.1-1.2.12 - geckolib 4.7 - guardvillagers 1.20.1-1.6.10 - hoporp 1.3.7 - hopour 1.1.4 - hotbath 1.20.1-2.0.1 - immersive_aircraft 1.1.8+1.20.1 - infinitybuttons 1.20.1-4.0.4 - insanelib 1.18.0 - irons_spellbooks 1.20.1-3.4.0.7 - itemfilters 2001.1.0-build.59 - itemproductionlib 1.0.2a - jade 11.12.3+forge - jadeaddons 5.3.1+forge - jei 15.20.0.106 - jmi 1.20.1-0.14-48 - journeymap 5.10.3 - kinetic_pixel 1.0.0 - kinetic_pixel_patch 1.0.0 - konkrete 1.8.0 - kotlinforforge 4.11.0 - krypton 0.2.3 - kubejs 2001.6.5-build.16 - kubejs_create 2001.2.5-build.2 - lithostitched 1.4 - lootr 0.7.35.90 - maxhealthfix 12.0.3 - mcwbridges 3.0.0 - mcwpaintings 1.0.5 - melody 1.0.2 - minecraft 1.20.1 - modernfix 5.20.2+mc1.20.1 - moestweaks 1.1.1 - molten_metals 1.20.1-0.1.4 - molten_vents 2.0.9 - moonlight 1.20-2.13.67 - mr_dungeons_andtavernsancientcityoverhaul 1 - mutil 6.2.0 - mvs 4.1.4-1.20-forge - naturalist 4.0.3 - naturescompass 1.20.1-1.11.2-forge - noisium 2.3.0+mc1.20-1.20.1 - oceanic_delight 1.0.3 - patchouli 1.20.1-84.1-FORGE - playeranimator 1.0.2-rc1+1.20 - protection_pixel 1.1.5 - puzzleslib 8.1.25 \-- puzzlesaccessapi 8.0.7 - quark 4.0-460 - quarkoddities 1.20.1 - radium 0.12.4+git.26c9d8e - railways 1.6.7+forge-mc1.20.1 - rare_ice 0.0NONE - recipeessentials 1.20.1-3.9 - refinedstorage 1.12.4 - refinedstorageaddons 0.10.0 - regions_unexplored 0.5.6 - rhino 2001.2.3-build.10 - searchables 1.0.3 - secondchanceforge 1.5.1 - simplebackups 1.20.1-3.1.7 - simplelifecrystal 1.0 - smsn 1.1.2+mc1.20.1 - solapplepie 1.20.1-2.3.0 - sophisticatedbackpacks 3.23.5.1200 - sophisticatedcore 1.2.14.875 - spark 1.10.53 - structureessentials 1.20.1-4.2 - supermartijn642configlib 1.1.8 - supplementaries 1.20-3.1.13 - tacz 1.1.4-hotfix - tectonic 2.4.1 - tectonic_tweak 1.1.0 - terrablender 3.0.1.7 - tetra 6.11.0 - titanium 3.8.32 - torchmaster 20.1.9 - visualworkbench 8.0.0 - waystones 14.1.9 - whatareyouvotingfor 1.2.5 - yungsapi 1.20-Forge-4.0.5 - zeta 1.0-24 ### Expected behaviour it should not happen ### Steps to reproduce like i said above ### Crashlog https://gist.github.com/JACKWULA123/ff900ad6f0fea4dec141d4b8a924aad9 ### Tetra version 6.11.0 ### mutil/mGui version 6.2.0 ### Forge version 47.3.12 ### Other mods _No response_
2 条评论