embeddedt/VintageFix

Failed apply mixin to ObfuscationReflectionHelper with `MixinTargetAlreadyLoadedException`

Opened this issue · 3 comments

I'm mixin into ObfuscationReflectionHelper in my mod. But VintageFix breaking that with MixinTargetAlreadyLoadedException

ObfuscationReflectionHelper.findField(LaunchClassLoader.class, "packageManifests").set(cl, new ConcurrentHashMap() {
@Override
public Object put(Object key, Object value) {
return null;
}
});
Field resourceCacheField = ObfuscationReflectionHelper.findField(LaunchClassLoader.class, "resourceCache");

The fields on the CL won't be obfed. It's launch wrapper instead of the game itself.

And also
https://github.com/embeddedt/VintageFix/blob/main/src/main/java/org/embeddedt/vintagefix/transformercache/TransformerCache.java#L117

Does 803605a help?

It does