Jump to content

I18n.format throws NoSuchMethodError when outside the dev environment


The_Fireplace

Recommended Posts

When I am in the dev environment and test the mod, it runs fine, but when I build the mod and run it, I get the following crash:

http://paste.ubuntu.com/18187657/

 

Here is the code that calls it.

 

I have tested this issue on Forge 12.17.0.1976, 12.18.0.2000, and 12.18.0.2004.

If I helped please press the Thank You button.

 

Check out my mods at http://www.curse.com/users/The_Fireplace/projects

Link to comment
Share on other sites

I18n got client only, which means you cant use it directly on mod class.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

I18n got client only, which means you cant use it directly on mod class.

So despite the fact that the mod is marked as client side only, you can't access client side only classes from the main mod file? And if it was an issue with the class, why was it a NoSuchMethodError and not a ClassNotFoundException?

If I helped please press the Thank You button.

 

Check out my mods at http://www.curse.com/users/The_Fireplace/projects

Link to comment
Share on other sites

It looks you're using a deobfuscated build of your mod in the obfuscated environment. Make sure you build your mod by running the

build

Gradle task, this reobfuscates it.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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