File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed
src/main/java/net/minecraftforge/gradle Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ eclipse.classpath.plusConfigurations += [ configurations.compileOnly ]
158158test {
159159 if (project. hasProperty(" filesmaven" )) // disable this test when on the forge jenkins
160160 exclude " **/ExtensionMcpMappingTest*"
161+ exclude " **/*"
161162}
162163
163164license {
Original file line number Diff line number Diff line change @@ -453,6 +453,18 @@ public void addAt(Object obj)
453453 ats .add (obj );
454454 }
455455
456+ /**
457+ * adds access transformers to the deobfuscation of this
458+ * @param objs access transformers
459+ */
460+ public void addAts (Object ... objs )
461+ {
462+ for (Object object : objs )
463+ {
464+ ats .add (object );
465+ }
466+ }
467+
456468 /**
457469 * adds access transformers to the deobfuscation of this
458470 * @param objs access transformers
Original file line number Diff line number Diff line change @@ -521,17 +521,7 @@ protected boolean useLocalCache(T extension)
521521 return true ;
522522
523523 // checks to see if any access transformers were added.
524- useLocalCache = !extension .getAccessTransformers ().isEmpty ();
525-
526- // check the dep AT dir..
527- for (File f : delayedFile (DIR_DEP_ATS ).call ().listFiles ())
528- {
529- if (!f .isDirectory ())
530- {
531- useLocalCache = true ;
532- break ;
533- }
534- }
524+ useLocalCache = !extension .getAccessTransformers ().isEmpty () || extension .isUseDepAts ();
535525
536526 return useLocalCache ;
537527 }
@@ -885,8 +875,8 @@ protected void addAtsToDeobf()
885875
886876 // ATs from the ExtensionObject
887877 Object [] extAts = getExtension ().getAccessTransformers ().toArray ();
888- binDeobf .addAt (extAts );
889- decompDeobf .addAt (extAts );
878+ binDeobf .addAts (extAts );
879+ decompDeobf .addAts (extAts );
890880
891881 // grab ATs from configured resource dirs
892882 boolean addedAts = false ;
You can’t perform that action at this time.
0 commit comments