mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-01-10 17:08:10 +00:00
parent
64f3e8f79b
commit
18e3a7553e
1 changed files with 7 additions and 1 deletions
|
@ -1072,7 +1072,13 @@ public class PlayerEvents extends PlotListener implements Listener {
|
|||
for (int i = blocks.size() - 1; i >= 0; i--) {
|
||||
location = BukkitUtil.getLocation(blocks.get(i).getLocation());
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue