mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-01 07:03:52 +01:00
Fix VS logging
This commit is contained in:
parent
aace4a37cb
commit
7c3ac8e362
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user