mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-01-18 16:35:25 +01:00
fix: don't allow overlapping plot areas
This commit is contained in:
parent
d39a40f093
commit
f3e16ac2b8
@ -184,6 +184,7 @@ public class Area extends SubCommand {
|
|||||||
CuboidRegion.makeCuboid(playerSelectedRegion)
|
CuboidRegion.makeCuboid(playerSelectedRegion)
|
||||||
).length != 0) {
|
).length != 0) {
|
||||||
player.sendMessage(TranslatableCaption.of("single.single_area_overlapping"));
|
player.sendMessage(TranslatableCaption.of("single.single_area_overlapping"));
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
// Alter the region
|
// Alter the region
|
||||||
final BlockVector3 playerSelectionMin = playerSelectedRegion.getMinimumPoint();
|
final BlockVector3 playerSelectionMin = playerSelectedRegion.getMinimumPoint();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user