From 0504e904a2d8cf6f698d2d7d201436d1ca1d5042 Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 12 Apr 2017 14:28:39 +0100 Subject: [PATCH] Only perform flatfile schema migration if the new dir doesn't exist --- .../lucko/luckperms/common/storage/backing/FlatfileBacking.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/backing/FlatfileBacking.java b/common/src/main/java/me/lucko/luckperms/common/storage/backing/FlatfileBacking.java index 94a4e791..2079e2b7 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/backing/FlatfileBacking.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/backing/FlatfileBacking.java @@ -123,7 +123,7 @@ public abstract class FlatfileBacking extends AbstractBacking { // Perform schema migration File oldData = new File(pluginDir, "data"); - if (oldData.exists()) { + if (!data.exists() && oldData.exists()) { plugin.getLog().severe("===== Legacy Schema Migration ====="); plugin.getLog().severe("Starting migration from legacy schema. This could take a while...."); plugin.getLog().severe("Please do not stop your server while the migration takes place.");