#net.minecraft.client
32 messages · Page 1 of 1 (latest)
!!splitsources
Split Sources provide a compile-time guarantee against calling client only Minecraft code or client only API on the server.
Client-only code can be placed in client, and code that is common to client and server can be placed in main. Client-only code can refer code in main, but not the other way.
Read more: Split Client and Common code - Fabric Loom
If it was split, that's your problem - trying to call client code from the server
That would work
To split it that is
i did nothing to that happen to me 😭
It's on by default I think
and i openened a new project and the same issue doesnt go to client it goes to common
yes
how can i change so
it is an intellij option?
No. You could change it, but it's really helpful for separating logic and avoiding errors.
Whatever you're making just needs to be in the client package (I'm guessing a screen?)
i want to get net.minecraft.client.MinecraftClient
Then do it in the client package. You can't get the client from the server, and the common code has to be able to run on the server.
!!sides
need to modify this?
Not unless you're trying to unsplit
its bcs im in main folder?
Yes
!!tick
@fallen frost: Unknown tag, use !tag to see all available tags
!tag