From 7c3ac8e3620048a3e00f394cc1c8d073f4d40db4 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 17 Mar 2018 01:11:12 +1100 Subject: [PATCH] Fix VS logging --- .../com/boydti/fawe/object/changeset/FaweChangeSet.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/boydti/fawe/object/changeset/FaweChangeSet.java b/core/src/main/java/com/boydti/fawe/object/changeset/FaweChangeSet.java index dc81ee72..a7b9b460 100644 --- a/core/src/main/java/com/boydti/fawe/object/changeset/FaweChangeSet.java +++ b/core/src/main/java/com/boydti/fawe/object/changeset/FaweChangeSet.java @@ -4,6 +4,7 @@ import com.boydti.fawe.Fawe; import com.boydti.fawe.FaweAPI; import com.boydti.fawe.FaweCache; import com.boydti.fawe.config.Settings; +import com.boydti.fawe.logging.rollback.RollbackOptimizedHistory; import com.boydti.fawe.object.FaweChunk; import com.boydti.fawe.object.FawePlayer; import com.boydti.fawe.object.FaweQueue; @@ -42,7 +43,11 @@ public abstract class FaweChangeSet implements ChangeSet { public static FaweChangeSet getDefaultChangeSet(World world, UUID uuid) { if (Settings.IMP.HISTORY.USE_DISK) { - return new DiskStorageHistory(world, uuid); + if (Settings.IMP.HISTORY.USE_DATABASE) { + return new RollbackOptimizedHistory(world, uuid); + } else { + return new DiskStorageHistory(world, uuid); + } } else { return new MemoryOptimizedHistory(world); }