From e698e46c7f464adac88fc1c728f1e253bb7c0648 Mon Sep 17 00:00:00 2001 From: simon816 Date: Sun, 13 Aug 2017 14:02:08 +0100 Subject: [PATCH] Scan for jars with 'spongeforge' instead of just 'sponge'. Fixes #10 --- build.gradle | 2 +- src/main/java/com/simon816/sponge/bootstrap/Bootstrap.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index e383143..ad493dd 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'eclipse' sourceCompatibility = '1.6' targetCompatibility = '1.6' -version = '0.5.0' +version = '0.5.1' repositories { mavenCentral() diff --git a/src/main/java/com/simon816/sponge/bootstrap/Bootstrap.java b/src/main/java/com/simon816/sponge/bootstrap/Bootstrap.java index 5bcfa5d..1b041cf 100644 --- a/src/main/java/com/simon816/sponge/bootstrap/Bootstrap.java +++ b/src/main/java/com/simon816/sponge/bootstrap/Bootstrap.java @@ -92,7 +92,7 @@ public boolean accept(File pathname) { @Override public boolean accept(File pathname) { String fn = pathname.getName().toLowerCase(); - return fn.endsWith(".jar") && fn.contains("sponge") && supportedVersion(fn); + return fn.endsWith(".jar") && fn.contains("spongeforge") && supportedVersion(fn); } }); }