Class ModDirTransformerDiscovererPatch

java.lang.Object
org.objectweb.asm.ClassVisitor
dev.architectury.loom.forge.ModDirTransformerDiscovererPatch

public final class ModDirTransformerDiscovererPatch extends org.objectweb.asm.ClassVisitor
Patches ModDirTransformerDiscovererPatch in Forge 49.0.50+ so that it doesn't try to create modules directly out of UnionFS root paths created by Union Relauncher. SecureModules can't infer the module names from those paths, so the game crashes without this patch.
  • Field Summary

    Fields inherited from class org.objectweb.asm.ClassVisitor

    api, cv
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModDirTransformerDiscovererPatch(org.objectweb.asm.ClassVisitor classVisitor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.objectweb.asm.MethodVisitor
    visitMethod(int access, String name, String descriptor, String signature, String[] exceptions)
     

    Methods inherited from class org.objectweb.asm.ClassVisitor

    getDelegate, visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModDirTransformerDiscovererPatch

      public ModDirTransformerDiscovererPatch(org.objectweb.asm.ClassVisitor classVisitor)
  • Method Details

    • visitMethod

      public org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String descriptor, String signature, String[] exceptions)
      Overrides:
      visitMethod in class org.objectweb.asm.ClassVisitor