PatchworkMC / patchwork-patcher

Patches Forge mod jars, allowing them to be loaded by Fabric
GNU Lesser General Public License v3.0
316 stars 33 forks source link

Fix bad default logic in StaticMethodRedirector #96

Closed cittyinthecloud closed 3 years ago

cittyinthecloud commented 3 years ago

The current implementation of StaticMethodRedirector replaced the name with the default if there was a mapping found for the name, rather than the opposite. This lead to a crash when patching any mod that uses something it redirects, the most obvious case being Class.forName, breaking most large mods that use reflection.