mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 08:36:45 +01:00
Revert changes to intersection generation
This commit is contained in:
parent
246845607f
commit
095dccd30f
@ -250,28 +250,17 @@ public class ClassicPlotManager extends SquarePlotManager {
|
|||||||
Location top = plot.getExtendedTopAbs().add(1, 0, 1);
|
Location top = plot.getExtendedTopAbs().add(1, 0, 1);
|
||||||
LocalBlockQueue queue = classicPlotWorld.getQueue(false);
|
LocalBlockQueue queue = classicPlotWorld.getQueue(false);
|
||||||
int y = classicPlotWorld.WALL_HEIGHT + 1;
|
int y = classicPlotWorld.WALL_HEIGHT + 1;
|
||||||
StringPlotBlock air = PlotBlock.get("air");
|
|
||||||
if (!plot.getMerged(Direction.NORTH)) {
|
if (!plot.getMerged(Direction.NORTH)) {
|
||||||
int z = bot.getZ();
|
int z = bot.getZ();
|
||||||
for (int x = bot.getX(); x < top.getX(); x++) {
|
for (int x = bot.getX(); x < top.getX(); x++) {
|
||||||
queue.setBlock(x, y, z, blocks.getBlock());
|
queue.setBlock(x, y, z, blocks.getBlock());
|
||||||
}
|
}
|
||||||
// Replace all blocks above the wall with air
|
|
||||||
queue.setCuboid(
|
|
||||||
new Location(top.getWorld(), top.getX(), y + 1, bot.getZ()),
|
|
||||||
new Location(bot.getWorld(), bot.getX(), 255, bot.getZ()),
|
|
||||||
air);
|
|
||||||
}
|
}
|
||||||
if (!plot.getMerged(Direction.WEST)) {
|
if (!plot.getMerged(Direction.WEST)) {
|
||||||
int x = bot.getX();
|
int x = bot.getX();
|
||||||
for (int z = bot.getZ(); z < top.getZ(); z++) {
|
for (int z = bot.getZ(); z < top.getZ(); z++) {
|
||||||
queue.setBlock(x, y, z, blocks.getBlock());
|
queue.setBlock(x, y, z, blocks.getBlock());
|
||||||
}
|
}
|
||||||
// Replace all blocks above the wall with air
|
|
||||||
queue.setCuboid(
|
|
||||||
new Location(top.getWorld(), bot.getX(), y + 1, top.getZ()),
|
|
||||||
new Location(bot.getWorld(), bot.getX(), 255, bot.getZ()),
|
|
||||||
air);
|
|
||||||
}
|
}
|
||||||
if (!plot.getMerged(Direction.SOUTH)) {
|
if (!plot.getMerged(Direction.SOUTH)) {
|
||||||
int z = top.getZ();
|
int z = top.getZ();
|
||||||
@ -279,11 +268,6 @@ public class ClassicPlotManager extends SquarePlotManager {
|
|||||||
x < top.getX() + (plot.getMerged(Direction.EAST) ? 0 : 1); x++) {
|
x < top.getX() + (plot.getMerged(Direction.EAST) ? 0 : 1); x++) {
|
||||||
queue.setBlock(x, y, z, blocks.getBlock());
|
queue.setBlock(x, y, z, blocks.getBlock());
|
||||||
}
|
}
|
||||||
// Replace all blocks above the wall with air
|
|
||||||
queue.setCuboid(
|
|
||||||
new Location(top.getWorld(), top.getX(), y + 1, top.getZ()),
|
|
||||||
new Location(bot.getWorld(), bot.getX(), 255, top.getZ()),
|
|
||||||
air);
|
|
||||||
}
|
}
|
||||||
if (!plot.getMerged(Direction.EAST)) {
|
if (!plot.getMerged(Direction.EAST)) {
|
||||||
int x = top.getX();
|
int x = top.getX();
|
||||||
@ -291,11 +275,6 @@ public class ClassicPlotManager extends SquarePlotManager {
|
|||||||
z < top.getZ() + (plot.getMerged(Direction.SOUTH) ? 0 : 1); z++) {
|
z < top.getZ() + (plot.getMerged(Direction.SOUTH) ? 0 : 1); z++) {
|
||||||
queue.setBlock(x, y, z, blocks.getBlock());
|
queue.setBlock(x, y, z, blocks.getBlock());
|
||||||
}
|
}
|
||||||
// Replace all blocks above the wall with air
|
|
||||||
queue.setCuboid(
|
|
||||||
new Location(top.getWorld(), top.getX(), y + 1, top.getZ()),
|
|
||||||
new Location(bot.getWorld(), top.getX(), 255, bot.getZ()),
|
|
||||||
air);
|
|
||||||
}
|
}
|
||||||
queue.enqueue();
|
queue.enqueue();
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user