Error Attempted to load class net/minecraft/client/gui/screens/Screen for invalid dist DEDICATED_SERVER

Started by dimagyt on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Error Attempted to load class net/minecraft/client/gui/screens/Screen for invalid dist DEDICATED_SERVER

Help me pls

My menu doesn't work on the server, although in the single-player world it starts and work

log error: 

 Server thread/ERROR net.minecraftforge.fml.loading.RuntimeDistCleaner/DISTXFORM Attempted to load class net/minecraft/client/gui/screens/Screen for invalid dist DEDICATED_SERVER
Server thread/ERROR net.minecraft.network.protocol.PacketUtils/ Failed to handle packet net.minecraft.network.protocol.game.ServerboundInteractPacket@3372df3, suppressing error
java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screens/Screen for invalid dist DEDICATED_SERVER