diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aef61ed..05cdb6d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "UltimateStacker" path: "/builds/$CI_PROJECT_PATH" - version: "1.6.1" + version: "1.6.2" build: stage: build diff --git a/src/main/java/com/songoda/ultimatestacker/UltimateStacker.java b/src/main/java/com/songoda/ultimatestacker/UltimateStacker.java index 71f1dc8..b112e9a 100644 --- a/src/main/java/com/songoda/ultimatestacker/UltimateStacker.java +++ b/src/main/java/com/songoda/ultimatestacker/UltimateStacker.java @@ -228,6 +228,7 @@ public class UltimateStacker extends JavaPlugin { this.spawnerFile = new ConfigWrapper(this, "", "spawners.yml"); this.references = new References(); this.settingsManager.reloadConfig(); + this.getLootManager().loadLootables(); } public boolean spawnersEnabled() { diff --git a/src/main/java/com/songoda/ultimatestacker/lootables/LootManager.java b/src/main/java/com/songoda/ultimatestacker/lootables/LootManager.java index 3e00f39..643483c 100644 --- a/src/main/java/com/songoda/ultimatestacker/lootables/LootManager.java +++ b/src/main/java/com/songoda/ultimatestacker/lootables/LootManager.java @@ -96,6 +96,7 @@ public class LootManager { } public void loadLootables() { + registeredLootables.clear(); File dir = new File(lootablesDir); File[] directoryListing = dir.listFiles(); if (directoryListing != null) {