Skip to content

Commit

Permalink
WeaponMechanics 1.9.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
CJCrafter committed Jul 30, 2022
1 parent a3e220f commit a90f975
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

group = "me.cjcrafter"
version = "1.3.2"
version = "1.3.3"

plugins {
`java-library`
Expand Down Expand Up @@ -48,8 +48,8 @@ repositories {

dependencies {
compileOnly("org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT")
compileOnly("me.deecaad:mechanicscore:1.3.3-BETA")
compileOnly("me.deecaad:weaponmechanics:1.8.3-BETA")
compileOnly("me.deecaad:mechanicscore:1.4.1-BETA")
compileOnly("me.deecaad:weaponmechanics:1.9.1-BETA")
implementation("io.lumine:Mythic-Dist:5.0.1-SNAPSHOT")
implementation("org.bstats:bstats-bukkit:3.0.0")
implementation("me.cjcrafter:mechanicsautodownload:1.0.2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ public void reload() {
// Write config from jar to datafolder
if (!getDataFolder().exists() || getDataFolder().listFiles() == null || getDataFolder().listFiles().length == 0) {
debug.info("Copying files from jar (This process may take up to 30 seconds during the first load!)");
try {
FileUtil.copyResourcesTo(getClassLoader().getResource("ArmorMechanics"), getDataFolder().toPath());
} catch (IOException | URISyntaxException e) {
e.printStackTrace();
}
FileUtil.copyResourcesTo(getClassLoader().getResource("ArmorMechanics"), getDataFolder().toPath());
}

reloadConfig();
Expand Down

0 comments on commit a90f975

Please # to comment.