From 416fea2aa51638abe4c2d902ea2168698c865203 Mon Sep 17 00:00:00 2001 From: Brady Date: Fri, 12 Oct 2018 18:10:54 -0500 Subject: [PATCH] Remove unnecessary removeIf usage --- buildSrc/src/main/java/baritone/gradle/ProguardTask.java | 1 - scripts/proguard.pro | 5 ----- 2 files changed, 6 deletions(-) diff --git a/buildSrc/src/main/java/baritone/gradle/ProguardTask.java b/buildSrc/src/main/java/baritone/gradle/ProguardTask.java index 4fec6392..c7d5662a 100644 --- a/buildSrc/src/main/java/baritone/gradle/ProguardTask.java +++ b/buildSrc/src/main/java/baritone/gradle/ProguardTask.java @@ -145,7 +145,6 @@ public class ProguardTask extends DefaultTask { // Setup the template that will be used to derive the API and Standalone configs List template = Files.readAllLines(getTemporaryFile(PROGUARD_CONFIG_DEST)); - template.removeIf(s -> s.endsWith("# this is the rt jar") || s.startsWith("-injars") || s.startsWith("-outjars")); template.add(0, "-injars " + this.artifactPath.toString()); template.add(1, "-outjars " + this.getTemporaryFile(PROGUARD_EXPORT_PATH)); diff --git a/scripts/proguard.pro b/scripts/proguard.pro index 261b47d1..4baa4b2a 100644 --- a/scripts/proguard.pro +++ b/scripts/proguard.pro @@ -1,7 +1,3 @@ --injars baritone-0.0.8.jar --outjars Obfuscated - - -keepattributes Signature -keepattributes *Annotation* @@ -29,7 +25,6 @@ -keep class baritone.launch.** { *; } # copy all necessary libraries into tempLibraries to build --libraryjars '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/rt.jar' # this is the rt jar -libraryjars 'tempLibraries/minecraft-1.12.2.jar'