Has anyone been getting: "java.lang.ClassNotFoundException: org.squiddev.cobalt.LuaError" when building a neoforge mod? #2431
|
Trying to figure out if anyone is having a similar issue to me, apologies if this is the wrong place. I'm using the Architectury template generator to try and make a cross-platform fabric/neoforge mod for CC. Added CC as a dependency and ran on a fabric server, works completely fine. Run on neoforge, error: Anyone having a similar issue? |
Replies: 2 comments 2 replies
|
This looks to be the same issue as #1752. I'm afraid this is caused by a bug in Architectury loom (architectury/architectury-loom#201), but you can work around by including the dependencies explicitly. |
|
Jesus I did not expect this to be an issue since 2024! Unfortunately doesn't appear to fix it though. At this point, I'm tempted to see if there is a similar way to build cross platform mods without the Architectury template that avoids this issue entirely. |
Sorry, to clarify — the example given in #1752 was specific to the version of the mod the reporter was using. Given it's two years later, those dependencies will have changed!
I don't know what version of CC:T you're using, but assuming CC:T 1.118 on MC 1.20.1, something like
forgeRuntimeLibrary "cc.tweaked:cobalt:0.9.7"should work. If not, might be worth asking the Architecturey team for support — afraid I've never used it, so not quite sure how the tooling works.