fix remapping twice
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s

This commit is contained in:
moehreag 2024-08-27 14:34:47 +02:00
parent 811b4e3611
commit 1fff5c75f6
2 changed files with 2 additions and 3 deletions

View file

@ -8,7 +8,7 @@ plugins {
} }
group = "dev.frogmc" group = "dev.frogmc"
version = "0.0.1-alpha.11" version = "0.0.1-alpha.12"
repositories { repositories {
mavenCentral() mavenCentral()

View file

@ -61,8 +61,7 @@ public class Thyroxine {
public static void remap(MappingData data, Path inputJar, Path outputJar, boolean skipMetaInf, boolean renameParameters, Path... context) throws IOException, InterruptedException { public static void remap(MappingData data, Path inputJar, Path outputJar, boolean skipMetaInf, boolean renameParameters, Path... context) throws IOException, InterruptedException {
List<RemappingStep> steps = List.of( List<RemappingStep> steps = List.of(
ClassRemapper::new, (cv, mapper) -> renameParameters ? new ParameterClassRemapper(cv, mapper, data) : new ClassRemapper(cv, mapper)
(cv, mapper) -> renameParameters ? new ParameterClassRemapper(cv, mapper, data) : cv
); );
remap(data, inputJar, outputJar, skipMetaInf, steps, context); remap(data, inputJar, outputJar, skipMetaInf, steps, context);
} }