mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 08:36:45 +01:00
Generate plot blocks on correct height when removing intersection
Fixes PS-46
This commit is contained in:
parent
cb969e37a6
commit
d07d32e28b
@ -455,17 +455,17 @@ public class ClassicPlotManager extends SquarePlotManager {
|
|||||||
int sz = location.getZ() + 1;
|
int sz = location.getZ() + 1;
|
||||||
int ez = sz + classicPlotWorld.ROAD_WIDTH - 1;
|
int ez = sz + classicPlotWorld.ROAD_WIDTH - 1;
|
||||||
LocalBlockQueue queue = classicPlotWorld.getQueue(false);
|
LocalBlockQueue queue = classicPlotWorld.getQueue(false);
|
||||||
queue.setCuboid(
|
queue.setCuboid(new Location(classicPlotWorld.getWorldName(), sx,
|
||||||
new Location(classicPlotWorld.getWorldName(), sx, classicPlotWorld.ROAD_HEIGHT + 1, sz),
|
Math.min(classicPlotWorld.PLOT_HEIGHT, classicPlotWorld.ROAD_HEIGHT) + 1, sz),
|
||||||
new Location(classicPlotWorld.getWorldName(), ex,
|
new Location(classicPlotWorld.getWorldName(), ex,
|
||||||
classicPlotWorld.getPlotManager().getWorldHeight(), ez),
|
classicPlotWorld.getPlotManager().getWorldHeight(), ez),
|
||||||
BlockTypes.AIR.getDefaultState());
|
BlockTypes.AIR.getDefaultState());
|
||||||
queue.setCuboid(new Location(classicPlotWorld.getWorldName(), sx, 1, sz),
|
queue.setCuboid(new Location(classicPlotWorld.getWorldName(), sx, 1, sz),
|
||||||
new Location(classicPlotWorld.getWorldName(), ex, classicPlotWorld.ROAD_HEIGHT - 1, ez),
|
new Location(classicPlotWorld.getWorldName(), ex, classicPlotWorld.PLOT_HEIGHT - 1, ez),
|
||||||
classicPlotWorld.MAIN_BLOCK.toPattern());
|
classicPlotWorld.MAIN_BLOCK.toPattern());
|
||||||
queue.setCuboid(
|
queue.setCuboid(
|
||||||
new Location(classicPlotWorld.getWorldName(), sx, classicPlotWorld.ROAD_HEIGHT, sz),
|
new Location(classicPlotWorld.getWorldName(), sx, classicPlotWorld.PLOT_HEIGHT, sz),
|
||||||
new Location(classicPlotWorld.getWorldName(), ex, classicPlotWorld.ROAD_HEIGHT, ez),
|
new Location(classicPlotWorld.getWorldName(), ex, classicPlotWorld.PLOT_HEIGHT, ez),
|
||||||
classicPlotWorld.TOP_BLOCK.toPattern());
|
classicPlotWorld.TOP_BLOCK.toPattern());
|
||||||
return queue.enqueue();
|
return queue.enqueue();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user