Jump to content

Recommended Posts

Posted

Hi, I am trying to use a shadowed dependency in my mod for version 1.8.9, but I just can't get it fully working.

I think the shadowing is working (at least a little) because I can use the dependency in my mod without getting a classdefnotfound, but if I actually try to use the dependency it just crashes with this error:
The error:

  Reveal hidden contents


I have no idea if this is me using the dependency wrong, me shadowing the dependency wrong, or the dependency just being broken.

Can someone maybe check if something obvious is wrong?

Thanks in advance!

I have provided everything I could think of, if something more is needed, please tell me.

Dependency I am trying to shadow into my jar: https://github.com/NotEnoughUpdates/MoulConfig I have downloaded this dependency as "/libs/legacy-3.0.0-beta.13.jar"

Example of how the dependency should work (their own example): https://github.com/NotEnoughUpdates/MoulConfig/blob/master/legacy/src/main/java/io/github/notenoughupdates/moulconfig/test/MoulConfigTest.java

Example of how the dependency should work (another mod written in kotlin (see line 91)): https://github.com/hannibal002/SkyHanni/blob/beta/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt

My ConfigManager.java (Where it breaks (see comment on line 16)):
 

  Reveal hidden contents

My FMLInitializationEvent:
 

  Reveal hidden contents

My build.gradle file (gradle 4.5):
(I run the tasks: "build shadowJar copyJarToBin" to build my mod)

  Reveal hidden contents

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.