Add debug
This commit is contained in:
parent
871074ec8e
commit
cf54fdc8c5
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user