From f8e4e69e53ada5227a6bed4dc2e63917592aa93e Mon Sep 17 00:00:00 2001 From: ShadowRanger Date: Tue, 23 Jun 2015 15:11:35 +1000 Subject: [PATCH] Bug fix and changes --- src/main/java/com/lishid/openinv/ConfigUpdater.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/lishid/openinv/ConfigUpdater.java b/src/main/java/com/lishid/openinv/ConfigUpdater.java index 5d4f42e..6265210 100644 --- a/src/main/java/com/lishid/openinv/ConfigUpdater.java +++ b/src/main/java/com/lishid/openinv/ConfigUpdater.java @@ -13,7 +13,7 @@ import com.lishid.openinv.utils.UUIDUtil; public class ConfigUpdater { private final OpenInv plugin; - private static final int LATEST_CONFIG_VERSION = 2; + private static final int CONFIG_VERSION = 2; public ConfigUpdater(OpenInv plugin) { this.plugin = plugin; @@ -24,7 +24,7 @@ public class ConfigUpdater { } private boolean isConfigOutdated() { - return getConfigVersion() < LATEST_CONFIG_VERSION; + return getConfigVersion() < CONFIG_VERSION; } public void checkForUpdates() { @@ -65,7 +65,7 @@ public class ConfigUpdater { } // Set the new config options - plugin.getConfig().set("config-version", LATEST_CONFIG_VERSION); + plugin.getConfig().set("config-version", CONFIG_VERSION); plugin.getConfig().set("check-for-updates", checkForUpdates); plugin.getConfig().set("items.open-inv", getMaterialById(itemOpenInvItemId).toString()); plugin.getConfig().set("notify.any-chest", notifyAnyChest);