From 43bb175d198cbf5fd57141a795176e6cd8314d9f Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 30 Apr 2021 17:00:43 +0200 Subject: [PATCH] Fix ConfigUpdater --- .../src/de/steamwar/bausystem/configplayer/ConfigUpdater.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/configplayer/ConfigUpdater.java b/BauSystem_Main/src/de/steamwar/bausystem/configplayer/ConfigUpdater.java index d028ff1d..9724dea5 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/configplayer/ConfigUpdater.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/configplayer/ConfigUpdater.java @@ -68,6 +68,10 @@ public class ConfigUpdater implements Listener { Bukkit.getLogger().log(Level.SEVERE, "Version Tag was the same after conversion"); return ConfigCreator.createDefaultConfig(); } + if (newVersion < version) { + Bukkit.getLogger().log(Level.SEVERE, "Version Tag was earlier after conversion"); + return ConfigCreator.createDefaultConfig(); + } version = newVersion; } return yapionObject;