mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Fix for paint
This commit is contained in:
parent
1bce69d288
commit
8c56affb2f
@ -2390,7 +2390,7 @@ public class Plot {
|
|||||||
return regions_cache;
|
return regions_cache;
|
||||||
}
|
}
|
||||||
HashSet<Plot> plots = this.getConnectedPlots();
|
HashSet<Plot> plots = this.getConnectedPlots();
|
||||||
regions_cache = new HashSet<>();
|
HashSet<RegionWrapper> regions = regions_cache = new HashSet<>();
|
||||||
HashSet<PlotId> visited = new HashSet<>();
|
HashSet<PlotId> visited = new HashSet<>();
|
||||||
for (Plot current : plots) {
|
for (Plot current : plots) {
|
||||||
if (visited.contains(current.getId())) {
|
if (visited.contains(current.getId())) {
|
||||||
@ -2462,9 +2462,9 @@ public class Plot {
|
|||||||
Location toploc = plot.getExtendedTopAbs();
|
Location toploc = plot.getExtendedTopAbs();
|
||||||
Location botabs = plot.getBottomAbs();
|
Location botabs = plot.getBottomAbs();
|
||||||
Location topabs = plot.getTopAbs();
|
Location topabs = plot.getTopAbs();
|
||||||
regions_cache.add(new RegionWrapper(botabs.getX(), topabs.getX(), topabs.getZ() + 1, toploc.getZ()));
|
regions.add(new RegionWrapper(botabs.getX(), topabs.getX(), topabs.getZ() + 1, toploc.getZ()));
|
||||||
if (plot.getMerged(5)) {
|
if (plot.getMerged(5)) {
|
||||||
regions_cache.add(new RegionWrapper(topabs.getX() + 1, toploc.getX(), topabs.getZ() + 1, toploc.getZ()));
|
regions.add(new RegionWrapper(topabs.getX() + 1, toploc.getX(), topabs.getZ() + 1, toploc.getZ()));
|
||||||
// intersection
|
// intersection
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2477,16 +2477,16 @@ public class Plot {
|
|||||||
Location toploc = plot.getExtendedTopAbs();
|
Location toploc = plot.getExtendedTopAbs();
|
||||||
Location botabs = plot.getBottomAbs();
|
Location botabs = plot.getBottomAbs();
|
||||||
Location topabs = plot.getTopAbs();
|
Location topabs = plot.getTopAbs();
|
||||||
regions_cache.add(new RegionWrapper(topabs.getX() + 1, toploc.getX(), botabs.getZ(), topabs.getZ()));
|
regions.add(new RegionWrapper(topabs.getX() + 1, toploc.getX(), botabs.getZ(), topabs.getZ()));
|
||||||
if (plot.getMerged(5)) {
|
if (plot.getMerged(5)) {
|
||||||
regions_cache.add(new RegionWrapper(topabs.getX() + 1, toploc.getX(), topabs.getZ() + 1, toploc.getZ()));
|
regions.add(new RegionWrapper(topabs.getX() + 1, toploc.getX(), topabs.getZ() + 1, toploc.getZ()));
|
||||||
// intersection
|
// intersection
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
regions_cache.add(new RegionWrapper(gbotabs.getX(), gtopabs.getX(), gbotabs.getZ(), gtopabs.getZ()));
|
regions.add(new RegionWrapper(gbotabs.getX(), gtopabs.getX(), gbotabs.getZ(), gtopabs.getZ()));
|
||||||
}
|
}
|
||||||
return regions_cache;
|
return regions;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user