Skip to content

Commit

Permalink
fix jitpack building
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsinco committed Aug 26, 2024
1 parent 4203e8d commit f8dbbff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ tasks {
}

jar {
enabled = false // Shadow produces our jar files
archiveClassifier.set("original")
//enabled = false // Shadow produces our jar files
}
withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/dre/brewery/api/addons/AddonManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void loadAddons() {
addon.getAddonLogger().info("Loading &a" + addon.getAddonInfo().name() + " &f-&a v" + addon.getAddonInfo().version() + " &fby &a" + addon.getAddonInfo().author());

addons.add(addon); // Add to our list of addons
addon.onAddonEnable();
//addon.onAddonEnable();
} catch (Exception e) {
plugin.getLogger().log(Level.SEVERE,"Failed to load addon class " + clazz.getSimpleName(), e);
}
Expand All @@ -113,6 +113,9 @@ public void loadAddons() {
}
}

for (BreweryAddon addon : addons) {
addon.onAddonEnable();
}
int loaded = addons.size();
if (loaded > 0) plugin.log("Loaded " + loaded + " addon(s)");
}
Expand Down

0 comments on commit f8dbbff

Please sign in to comment.