Jump to content

ASM transformed class not behaving


planetguy
 Share

Recommended Posts

Recently I've been annoyed by portals in the overworld creating portals in the nether that could not under any circumstances lead back to them. I fixed it with a base-class edit, but that doesn't have the clean distribution coremods allow, so based on some examples, I made it into a coremod. I change a variable definition from a constant to a call to my mod's function. The function is properly called, but the constant from vanilla is still used (I checked by adding a print statement to the class, and it doesn't match what my function returns.)

Source code:

https://github.com/planetguy32/Gizmos/blob/master/planetguy/portalmod/NoCrosslinkASMTransformer.java

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

 Share

×
×
  • Create New...