mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
parent
64f3e8f79b
commit
18e3a7553e
@ -1072,7 +1072,13 @@ public class PlayerEvents extends PlotListener implements Listener {
|
|||||||
for (int i = blocks.size() - 1; i >= 0; i--) {
|
for (int i = blocks.size() - 1; i >= 0; i--) {
|
||||||
location = BukkitUtil.getLocation(blocks.get(i).getLocation());
|
location = BukkitUtil.getLocation(blocks.get(i).getLocation());
|
||||||
Plot plot = area.getOwnedPlot(location);
|
Plot plot = area.getOwnedPlot(location);
|
||||||
if (!Objects.equals(plot, origin)) {
|
/*
|
||||||
|
* plot -> the base plot of the merged area
|
||||||
|
* origin -> the plot where the event gets called
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Are plot and origin not the same AND are both plots merged
|
||||||
|
if (!Objects.equals(plot, origin) && (!plot.isMerged() && !origin.isMerged())) {
|
||||||
event.getBlocks().remove(i);
|
event.getBlocks().remove(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user