#net.minecraft.client

32 messages · Page 1 of 1 (latest)

fallen frost
#

i cant select net.minecraft.client idk why.

As you can see, its like selects the common file and not the clientOnly

worldly meadow
#

!!splitsources

indigo jasperBOT
#
Split Sources

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

fallen frost
#

@worldly meadow its strange bcs i had it previously

#

is that good?

worldly meadow
#

If it was split, that's your problem - trying to call client code from the server

#

That would work

#

To split it that is

fallen frost
worldly meadow
#

It's on by default I think

fallen frost
#

and i openened a new project and the same issue doesnt go to client it goes to common

fallen frost
#

how can i change so

#

it is an intellij option?

worldly meadow
#

Whatever you're making just needs to be in the client package (I'm guessing a screen?)

fallen frost
worldly meadow
#

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

worldly meadow
#

Not unless you're trying to unsplit

fallen frost
#

i didnt touch that

#

that is by default

fallen frost
worldly meadow
#

Yes

fallen frost
#

okey let me check

#

yeaahhh it works

#

@worldly meadow thankyou

fallen frost
#

!!tick

indigo jasperBOT
#

@fallen frost: Unknown tag, use !tag to see all available tags

fallen frost
#

!tag