From 871074ec8e7d00db96ab5599b6718ebf98e6800c Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 10 Mar 2018 01:28:10 +1100 Subject: [PATCH] Don't force trim to overwrite in-use sections. - Just skip them --- .../src/main/java/com/boydti/fawe/command/AnvilCommands.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/boydti/fawe/command/AnvilCommands.java b/core/src/main/java/com/boydti/fawe/command/AnvilCommands.java index 0d30fab0..0795cada 100644 --- a/core/src/main/java/com/boydti/fawe/command/AnvilCommands.java +++ b/core/src/main/java/com/boydti/fawe/command/AnvilCommands.java @@ -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())); }