Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

Files issue

Anh8283

New member
Joined
Jul 25, 2023
Messages
2
Reaction score
0
Points
1
I created a package in assets.minecraft to store my client's resources. However, whenever I try to access it via
Java:
mc.getResourceManager().getResource(new ResourceLocation("...")).getInputStream());
it throws FileNotFoundException although the directory names are correct. Later I found out that when packaging the client into a jar the package would not get added either. I think somehow it got ignored ? What could be the problem ?
 
I would guess that you didn't compile your resources into the jar. Just creating a "new ResourceLocation("...")" does not create the directory btw
 
Fixed ! I had to moved the resources using the maven resources plugin. Idk if it's an ideal solution but it works.
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top