From e6feb74d4809334e5f14fe3c6ca9d1cdc8c85404 Mon Sep 17 00:00:00 2001 From: ZekerZhayard Date: Sat, 28 Dec 2019 10:57:28 +0800 Subject: [PATCH] Clean build.gradle. --- build.gradle | 18 ------------------ .../zekerzhayard/forgewrapper/Utils.java | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/build.gradle b/build.gradle index 44dc7b3..8f41c50 100644 --- a/build.gradle +++ b/build.gradle @@ -1,21 +1,3 @@ -/* - * This file was generated by the Gradle 'init' task. - * - * This is a general purpose Gradle build. - * Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds/ - */ - -buildscript { - repositories { - mavenCentral() - jcenter() - maven { - name = "forge" - url = "https://files.minecraftforge.net/maven" - } - } -} - apply plugin: "base" apply plugin: "java" apply plugin: "idea" diff --git a/src/main/java/io/github/zekerzhayard/forgewrapper/Utils.java b/src/main/java/io/github/zekerzhayard/forgewrapper/Utils.java index 6c99888..4420253 100644 --- a/src/main/java/io/github/zekerzhayard/forgewrapper/Utils.java +++ b/src/main/java/io/github/zekerzhayard/forgewrapper/Utils.java @@ -35,7 +35,7 @@ public class Utils { public static File getLibrariesDir() throws URISyntaxException { File wrapper = new File(Utils.class.getProtectionDomain().getCodeSource().getLocation().toURI()); // see https://github.com/MinecraftForge/MinecraftForge/blob/863ab2ca184cf2e2dfa134d07bfc20d6a9a6a4e8/src/main/java/net/minecraftforge/fml/relauncher/libraries/LibraryManager.java#L151 - // ForgeWrapper ZekerZhayard github com libraries + // / /ForgeWrapper /ZekerZhayard /github /com /libraries return wrapper.getParentFile().getParentFile().getParentFile().getParentFile().getParentFile().getParentFile(); } }