MinecraftForge / ForgeGradle

Minecraft mod development framework used by Forge and FML for the gradle build system
GNU Lesser General Public License v2.1
526 stars 447 forks source link

genIntellijRuns minecraft client run not loading resources #853

Closed ghost closed 2 years ago

ghost commented 2 years ago
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("my-resource.png"));

^ this line should bind a texture but it throws NullPointerException if i run it in minecraft client run that was generated by forgegradle's genIntellijRuns (if i build it and then run in minecraft everything works fine).

TheCurle commented 2 years ago

This is not a ForgeGradle issue, this is a basic misconception of how the game works. You're also using an unsupporrted version of Minecraft. This is also not a support forum, this is an issue tracker.

Please vacate our repositories.