Scotsguy / now-playing

Minecraft mod that shows a 'now playing' popup whenever music changes.
MIT License
11 stars 5 forks source link

Forge branch fails to run in dev environment #6

Closed PaintNinja closed 4 years ago

PaintNinja commented 4 years ago

Error: java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.util.registry.Registry

Steps to reproduce:

  1. Clone the forge branch of this repo
  2. Import the clone into IntelliJ
  3. Run gradlew runClient

Crash report: https://pastebin.com/raw/7fvsLtJN

JayJay1989 commented 4 years ago

Thats right, mixin doesn't work within runtime. At least you need the Mixin Bootstrap mod

PaintNinja commented 4 years ago

You don't need Mixin Bootstrap as of a while now, it's been available in Forge since 1.16.1-32.0.72+ according to the mod's own description.

I tried downloading the Mixin Bootstrap mod and putting it in the run\mods folder anyway and the same crash happens.

JayJay1989 commented 4 years ago

its a mixin problem, ask on the forge discord in the channel 'non-api-modding' channel

PaintNinja commented 4 years ago

Can you confirm whether or not you can execute gradlew runClient successfully on your end with a clone of the Forge branch of this repo?

JayJay1989 commented 4 years ago

its not possible to run mixins from a workspace.

PaintNinja commented 4 years ago

Alright, built a jar and tested it on a production env and it works. Building it with gradlew jar didn't work however building it with gradlew reobfJar did.