Addon data folder name change.

This commit is contained in:
Tastybento 2017-12-28 11:32:57 -08:00
parent d3490a6f24
commit 92213f20c1
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ public final class AddonsManager {
loader = new AddonClassLoader(data, f, reader, this.getClass().getClassLoader());
this.loader.add(loader);
addon = loader.addon;
addon.setDataFolder(new File(f.getParent(), f.getName().replace(".jar", "")));
addon.setDataFolder(new File(f.getParent(), addon.getDescription().getName()));
addon.setAddonFile(f);
Bukkit.getPluginManager().callEvent(AddonEvent.builder().addon(addon).reason(AddonEvent.Reason.LOAD).build());
this.addons.add(addon);