Skip to content

Commit

Permalink
Fixed buildscript
Browse files Browse the repository at this point in the history
 Changes to be committed:
	modified:   build.gradle
  • Loading branch information
BoogieMonster1O1 committed Jul 26, 2020
1 parent 5132984 commit e184877
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions build.gradle
Expand Up @@ -14,11 +14,7 @@ class Globals {
private static final def MINECRAFT_VERSION ="1.16.1"

static def getArchiveName() {
return ARCHIVE_NAME + "-" + MINECRAFT_VERSION
}

static def getZipArchiveName() {
return getArchiveName() + ".zip"
return ARCHIVE_NAME + "-" + MINECRAFT_VERSION + ".zip"
}
}

Expand All @@ -42,8 +38,8 @@ task install {
}

static def installPlugin(String path, String separator) {
File des = new File(path + Globals.getZipArchiveName())
File original = new File(String.format("%s%s%s%s%s", System.getProperty("user.dir"), separator, "build", separator, Globals.getZipArchiveName()))
File des = new File(path + Globals.getArchiveName())
File original = new File(String.format("%s%s%s%s%s", System.getProperty("user.dir"), separator, "build", separator, Globals.getArchiveName()))
if(des.exists()) {
des.delete()
}
Expand Down

0 comments on commit e184877

Please sign in to comment.