From 095dccd30f07af2f58775393704bb5a77434640a Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Fri, 28 Jun 2019 13:59:57 +0100 Subject: [PATCH] Revert changes to intersection generation --- .../plot/generator/ClassicPlotManager.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/ClassicPlotManager.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/ClassicPlotManager.java index baa0575e3..118733f36 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/ClassicPlotManager.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/ClassicPlotManager.java @@ -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;