@@ -346,15 +346,15 @@ private void produceSrgJar(boolean official, Path clientJar, Path serverJar) thr
346
346
Path tmpSrg = getToSrgMappings ();
347
347
Set <File > mcLibs = getProject ().getConfigurations ().getByName (Constants .Configurations .MINECRAFT_DEPENDENCIES ).resolve ();
348
348
349
- boolean isSrg = getExtension ().getMcpConfigProvider ().isSRG ();
349
+ boolean isSrg = getExtension ().getSrgProvider ().isLegacy ();
350
350
351
351
Path [] clientJarOut = new Path [] { null };
352
352
Path [] serverJarOut = new Path [] { null };
353
353
354
354
ThreadingUtils .run (() -> {
355
- clientJarOut [0 ] = SpecialSourceExecutor .produceSrgJar (getExtension ().getMcpConfigProvider ().getRemapAction (), getProject (), "client" , mcLibs , clientJar , tmpSrg , isSrg , false );
355
+ clientJarOut [0 ] = SpecialSourceExecutor .produceSrgJar (getExtension ().getMcpConfigProvider ().getRemapAction (), getProject (), "client" , mcLibs , clientJar , tmpSrg , isSrg , true );
356
356
}, () -> {
357
- serverJarOut [0 ] = SpecialSourceExecutor .produceSrgJar (getExtension ().getMcpConfigProvider ().getRemapAction (), getProject (), "server" , mcLibs , serverJar , tmpSrg , isSrg , false );
357
+ serverJarOut [0 ] = SpecialSourceExecutor .produceSrgJar (getExtension ().getMcpConfigProvider ().getRemapAction (), getProject (), "server" , mcLibs , serverJar , tmpSrg , isSrg , true );
358
358
});
359
359
360
360
// if (isSrg) {
@@ -641,7 +641,7 @@ private void patchJars(File clean, File output, Path patches, String side) throw
641
641
// Failed to replace logger filter, just ignore
642
642
}
643
643
644
- if (getExtension ().getMcpConfigProvider ().isSRG ()) {
644
+ if (getExtension ().getMcpConfigProvider ().isFG2 ()) {
645
645
646
646
new TaskApplyBinPatches ().doTask (getProject (), clean .getAbsoluteFile (), patches .toFile ().getAbsoluteFile (), output .getAbsoluteFile (), side );
647
647
@@ -665,11 +665,11 @@ private void mergeJars(Logger logger) throws Exception {
665
665
// This will change if upstream Loom adds the possibility for separate projects/source sets per environment.
666
666
667
667
668
- if (getExtension ().getMcpConfigProvider ().isSRG ()) {
668
+ if (getExtension ().getMcpConfigProvider ().isFG2 ()) {
669
669
logger .lifecycle (":merging jars" );
670
670
Path tmpSrg = getToSrgMappings ();
671
671
Set <File > mcLibs = getProject ().getConfigurations ().getByName (Constants .Configurations .MINECRAFT_DEPENDENCIES ).resolve ();
672
- Files .copy (SpecialSourceExecutor .produceSrgJar (getExtension ().getMcpConfigProvider ().getRemapAction (), getProject (), "merged" , mcLibs , minecraftClientPatchedSrgJar .toPath (), tmpSrg , true , true ), minecraftMergedPatchedSrgJar .toPath ());
672
+ Files .copy (SpecialSourceExecutor .produceSrgJar (getExtension ().getMcpConfigProvider ().getRemapAction (), getProject (), "merged" , mcLibs , minecraftClientPatchedSrgJar .toPath (), tmpSrg , getExtension (). getSrgProvider (). isLegacy (), false ), minecraftMergedPatchedSrgJar .toPath ());
673
673
} else {
674
674
Files .copy (minecraftClientPatchedSrgJar .toPath (), minecraftMergedPatchedSrgJar .toPath ());
675
675
}
0 commit comments