Fix VS logging

This commit is contained in:
Jesse Boyd 2018-03-17 01:11:12 +11:00
parent aace4a37cb
commit 7c3ac8e362
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -4,6 +4,7 @@ import com.boydti.fawe.Fawe;
import com.boydti.fawe.FaweAPI; import com.boydti.fawe.FaweAPI;
import com.boydti.fawe.FaweCache; import com.boydti.fawe.FaweCache;
import com.boydti.fawe.config.Settings; import com.boydti.fawe.config.Settings;
import com.boydti.fawe.logging.rollback.RollbackOptimizedHistory;
import com.boydti.fawe.object.FaweChunk; import com.boydti.fawe.object.FaweChunk;
import com.boydti.fawe.object.FawePlayer; import com.boydti.fawe.object.FawePlayer;
import com.boydti.fawe.object.FaweQueue; import com.boydti.fawe.object.FaweQueue;
@ -42,7 +43,11 @@ public abstract class FaweChangeSet implements ChangeSet {
public static FaweChangeSet getDefaultChangeSet(World world, UUID uuid) { public static FaweChangeSet getDefaultChangeSet(World world, UUID uuid) {
if (Settings.IMP.HISTORY.USE_DISK) { 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 { } else {
return new MemoryOptimizedHistory(world); return new MemoryOptimizedHistory(world);
} }