Skip to content

Commit

Permalink
2.0.5 - Fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
VoChiDanh committed Sep 20, 2023
1 parent 1f2c7ea commit b982e9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -6,7 +6,7 @@

<groupId>net.danh</groupId>
<artifactId>Storage</artifactId>
<version>2.0.3</version>
<version>2.0.5</version>
<packaging>jar</packaging>

<name>Storage</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/danh/storage/GUI/PersonalStorage.java
Expand Up @@ -39,7 +39,7 @@ public Inventory getInventory() {
if (slot.contains(",")) {
List<String> slot_list = new ArrayList<>(Arrays.asList(slot.split(",")));
List<String> item_list = new ArrayList<>(MineManager.getPluginBlocks());
for (int i = 0; i < slot_list.size(); i++) {
for (int i = 0; i < item_list.size(); i++) {
String material = MineManager.getMaterial(item_list.get(i));
String name = File.getConfig().getString("items." + item_list.get(i));
ItemStack itemStack = ItemManager.getItemConfig(p, material, name != null ? name : item_list.get(i).split(";")[0], config.getConfigurationSection("items.storage_item"));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/danh/storage/Utils/File.java
Expand Up @@ -56,7 +56,7 @@ public static void updateConfig() {
getFileSetting().save("config.yml");
java.io.File configFile = new java.io.File(Storage.getStorage().getDataFolder(), "config.yml");
try {
ConfigUpdater.update(Storage.getStorage(), "config.yml", configFile);
ConfigUpdater.update(Storage.getStorage(), "config.yml", configFile, "items", "blocks", "worth");
Storage.getStorage().getLogger().log(Level.WARNING, "Your config have been updated successful");
} catch (IOException e) {
Storage.getStorage().getLogger().log(Level.WARNING, "Can not update config by it self, please backup and rename your config then restart to get newest config!!");
Expand Down

0 comments on commit b982e9d

Please sign in to comment.