mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
Fix plot getRegions off by 1
This commit is contained in:
parent
fe438fd62a
commit
1d9ad94822
@ -879,10 +879,10 @@ public class Plot {
|
|||||||
@Override public void run() {
|
@Override public void run() {
|
||||||
if (queue.isEmpty()) {
|
if (queue.isEmpty()) {
|
||||||
Runnable run = () -> {
|
Runnable run = () -> {
|
||||||
// for (CuboidRegion region : regions) {
|
for (CuboidRegion region : regions) {
|
||||||
// Location[] corners = MainUtil.getCorners(getWorldName(), region);
|
Location[] corners = MainUtil.getCorners(getWorldName(), region);
|
||||||
// ChunkManager.manager.clearAllEntities(corners[0], corners[1]);
|
ChunkManager.manager.clearAllEntities(corners[0], corners[1]);
|
||||||
// }
|
}
|
||||||
TaskManager.runTask(whenDone);
|
TaskManager.runTask(whenDone);
|
||||||
};
|
};
|
||||||
for (Plot current : plots) {
|
for (Plot current : plots) {
|
||||||
@ -2710,7 +2710,7 @@ public class Plot {
|
|||||||
BlockVector3 pos2 = BlockVector3.at(toploc.getX(), Plot.MAX_HEIGHT - 1, topabs.getZ());
|
BlockVector3 pos2 = BlockVector3.at(toploc.getX(), Plot.MAX_HEIGHT - 1, topabs.getZ());
|
||||||
regions.add(new CuboidRegion(pos1, pos2));
|
regions.add(new CuboidRegion(pos1, pos2));
|
||||||
if (plot.getMerged(Direction.SOUTHEAST)) {
|
if (plot.getMerged(Direction.SOUTHEAST)) {
|
||||||
pos1 = BlockVector3.at(topabs.getX() + 1, 0, topabs.getZ());
|
pos1 = BlockVector3.at(topabs.getX() + 1, 0, topabs.getZ() + 1);
|
||||||
pos2 = BlockVector3.at(toploc.getX(), Plot.MAX_HEIGHT - 1, toploc.getZ());
|
pos2 = BlockVector3.at(toploc.getX(), Plot.MAX_HEIGHT - 1, toploc.getZ());
|
||||||
regions.add(
|
regions.add(
|
||||||
new CuboidRegion(pos1, pos2));
|
new CuboidRegion(pos1, pos2));
|
||||||
|
Loading…
Reference in New Issue
Block a user