Jump to content

Recommended Posts

Posted

My mod works fine when run in the workspace, however, if I do gradlew.bat build, and use the compiled mod, it crashes, giving me the following report:

 

  Reveal hidden contents

 

And here is my code:

 

  Reveal hidden contents

 

If I helped please press the Thank You button.

 

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

Posted

That might be a problem with reobfuscation then. Try running "gradlew --refresh-dependencies build" and see if that helps, or even re-run "gradlew setupDevWorkspace" before building.

 

On a side note, you can use event.source.getEntity() instanceof EntityPlayer as a more generic way to check if a player was the cause of damage, rather than only checking for damageType().equals("player"). The latter will not work for things like projectiles, while the former will.

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.