Revert changes to intersection generation

This commit is contained in:
dordsor21 2019-06-28 13:59:57 +01:00
parent 246845607f
commit 095dccd30f

View File

@ -250,28 +250,17 @@ public class ClassicPlotManager extends SquarePlotManager {
Location top = plot.getExtendedTopAbs().add(1, 0, 1);
LocalBlockQueue queue = classicPlotWorld.getQueue(false);
int y = classicPlotWorld.WALL_HEIGHT + 1;
StringPlotBlock air = PlotBlock.get("air");
if (!plot.getMerged(Direction.NORTH)) {
int z = bot.getZ();
for (int x = bot.getX(); x < top.getX(); x++) {
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)) {
int x = bot.getX();
for (int z = bot.getZ(); z < top.getZ(); z++) {
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)) {
int z = top.getZ();
@ -279,11 +268,6 @@ public class ClassicPlotManager extends SquarePlotManager {
x < top.getX() + (plot.getMerged(Direction.EAST) ? 0 : 1); x++) {
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)) {
int x = top.getX();
@ -291,11 +275,6 @@ public class ClassicPlotManager extends SquarePlotManager {
z < top.getZ() + (plot.getMerged(Direction.SOUTH) ? 0 : 1); z++) {
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();
return true;