Don't force trim to overwrite in-use sections.

- Just skip them
This commit is contained in:
Jesse Boyd 2018-03-10 01:28:10 +11:00
parent c9ca0791ea
commit 871074ec8e
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -294,7 +294,10 @@ public class AnvilCommands {
String folder = Fawe.imp().getWorldName(player.getWorld());
int visitTime = deleteUnvisited ? 1 : -1;
PlotTrimFilter filter = new PlotTrimFilter(player.getWorld(), 0, visitTime, 600000);
PlotTrimFilter result = runWithWorld(player, folder, filter, true);
// PlotTrimFilter result = runWithWorld(player, folder, filter, true);
FaweQueue defaultQueue = SetQueue.IMP.getNewQueue(folder, true, false);
MCAQueue queue = new MCAQueue(defaultQueue);
PlotTrimFilter result = queue.filterWorld(filter);
if (result != null) player.print(BBC.getPrefix() + BBC.VISITOR_BLOCK.format(result.getTotal()));
}