Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hey everyone :)

I am unable to find a answer for quite a long while now so I will simple ask!

 

When a mod from a certain modpack needs a fix I usually just decompile the class from the problematic mod, apply a quickfix, recompile it and put it back in the mod jar/zip.

 

Is there a way to override another mod class/patch it without having to mess with it?

 

For example: I would create a mod with all the fixes for the other mods with a tree like:

- com.mod1.blabla.potato

- com.mod3.blabla.kartoffel

- net.mod2.carrot

And all those classes would override the original ones!

 

Just an example, if there is a solution out there I'd really be interested!

 

The Java class path is first found wins.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author

So:

1- In loading order that's just a matter of luck or is there a way to force load the mod before all others?

2- Besides that option, no other way to override a Method from other mod?

Mods are sorted aplhabetically.

Beyond that, you could do a coremod.

But in reality, it's bad practice to edit other's classes, its better to go to the mod author and get fixes that way.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author

I do understand it's a bad practice to edit other's classes so when I find something that needs fixing I always report it to the mod owner.

Problem is, as you understand, modpacks sometimes take a long time to be updated and measures like this need to be taken to avoid prejudicing the players.

 

I will have a look into the coremods but I do got a question regarding that:

To my understanding a coremod would be used Vanilla behaviour, involving (or not) bytecode manipulation.

How would I make it so it Overrides a class from an existent mod instead?

 

Some years ago I would simply ask if a simple "@Override" would do it, but this has proved to be something more complicated than I originally expected.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.