diff --git a/pom.xml b/pom.xml index 326cf9d..d650e57 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ org.spigotmc spigot - 1.14-pre5 + 1.14 com.songoda diff --git a/src/main/java/com/songoda/ultimaterepairing/UltimateRepairing.java b/src/main/java/com/songoda/ultimaterepairing/UltimateRepairing.java index 128e720..5bd5dfd 100644 --- a/src/main/java/com/songoda/ultimaterepairing/UltimateRepairing.java +++ b/src/main/java/com/songoda/ultimaterepairing/UltimateRepairing.java @@ -184,6 +184,8 @@ public final class UltimateRepairing extends JavaPlugin implements Listener { // Wipe old kit information dataFile.getConfig().set("data", null); + if (anvilManager.getAnvils() == null) return; + /* * Save anvils from AnvilManager to Configuration. */