Add debug

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

View File

@ -41,6 +41,8 @@ public class PlotTrimFilter extends DeleteUninhabitedFilter {
public PlotTrimFilter(World world, long fileDuration, long inhabitedTicks, long chunkInactivity) { public PlotTrimFilter(World world, long fileDuration, long inhabitedTicks, long chunkInactivity) {
super(fileDuration, inhabitedTicks, chunkInactivity); super(fileDuration, inhabitedTicks, chunkInactivity);
Fawe.debug("Initializing Plot trim...");
String worldName = Fawe.imp().getWorldName(world); String worldName = Fawe.imp().getWorldName(world);
PlotArea area = PS.get().getPlotAreaByString(worldName); PlotArea area = PS.get().getPlotAreaByString(worldName);
IndependentPlotGenerator gen = area.getGenerator(); IndependentPlotGenerator gen = area.getGenerator();
@ -57,6 +59,7 @@ public class PlotTrimFilter extends DeleteUninhabitedFilter {
this.reference = calculateReference(); this.reference = calculateReference();
Fawe.debug(" - calculating claims");
this.calculateClaimedArea(); this.calculateClaimedArea();
} }
@ -114,6 +117,7 @@ public class PlotTrimFilter extends DeleteUninhabitedFilter {
@Override @Override
public boolean shouldDelete(File file, BasicFileAttributes attr, int mcaX, int mcaZ) throws IOException { public boolean shouldDelete(File file, BasicFileAttributes attr, int mcaX, int mcaZ) throws IOException {
Fawe.debug("Apply file: " + file);
return !occupiedRegions.containsKey(mcaX, mcaZ) || super.shouldDelete(file, attr, mcaX, mcaZ); return !occupiedRegions.containsKey(mcaX, mcaZ) || super.shouldDelete(file, attr, mcaX, mcaZ);
} }