From 49cebe2a31a525d4c3543aa668b3b70c2fcb953e Mon Sep 17 00:00:00 2001 From: Sage M Date: Mon, 6 Dec 2021 21:53:18 -0600 Subject: [PATCH] Fix module order and encryption file location --- .../disguise/utilities/watchers/CompileMethods.java | 6 ++---- pom.xml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/watchers/CompileMethods.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/watchers/CompileMethods.java index 6fa063f7..a033b514 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/watchers/CompileMethods.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/watchers/CompileMethods.java @@ -65,8 +65,7 @@ public class CompileMethods { list.add(sound.toString()); } - File soundsFile = new File("target/classes/ANTI_PIRACY_SECRET_FILE"); - System.out.println(soundsFile.getAbsolutePath()); + File soundsFile = new File("plugin/target/classes/ANTI_PIRACY_ENCRYPTION"); try (FileOutputStream fos = new FileOutputStream(soundsFile)) { byte[] array = String.join("\n", list).getBytes(StandardCharsets.UTF_8); @@ -157,8 +156,7 @@ public class CompileMethods { } } - File methodsFile = new File("target/classes/ANTI_PIRACY_ENCRYPTION"); - System.out.println(methodsFile.getAbsolutePath()); + File methodsFile = new File("plugin/target/classes/ANTI_PIRACY_ENCRYPTION"); try (FileOutputStream fos = new FileOutputStream(methodsFile)) { byte[] array = String.join("\n", methods).getBytes(StandardCharsets.UTF_8); diff --git a/pom.xml b/pom.xml index 2163189e..9a34769c 100644 --- a/pom.xml +++ b/pom.xml @@ -8,9 +8,9 @@ pom 10.0.26-SNAPSHOT + shared v1_18_R1 plugin - shared