mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
Fixes #1063
This commit is contained in:
@ -171,6 +171,7 @@ public class PS {
|
||||
if (Settings.Enabled_Components.WORLDEDIT_RESTRICTIONS) {
|
||||
try {
|
||||
if (this.IMP.initWorldEdit()) {
|
||||
PS.debug("PlotSquared hooked into WorldEdit.");
|
||||
this.worldedit = WorldEdit.getInstance();
|
||||
WorldEdit.getInstance().getEventBus().register(new WESubscriber());
|
||||
new WE_Anywhere();
|
||||
|
@ -850,7 +850,7 @@ public class Plot {
|
||||
if (!this.isMerged()) {
|
||||
return false;
|
||||
}
|
||||
Set<Plot> plots = this.getConnectedPlots();
|
||||
final Set<Plot> plots = this.getConnectedPlots();
|
||||
ArrayList<PlotId> ids = new ArrayList<>(plots.size());
|
||||
for (Plot current : plots) {
|
||||
current.setHome(null);
|
||||
@ -886,9 +886,16 @@ public class Plot {
|
||||
for (Plot current : plots) {
|
||||
boolean[] merged = new boolean[]{false, false, false, false};
|
||||
current.setMerged(merged);
|
||||
if (createSign) {
|
||||
current.setSign(MainUtil.getName(current.owner));
|
||||
}
|
||||
}
|
||||
if (createSign) {
|
||||
GlobalBlockQueue.IMP.addTask(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
for (Plot current : plots) {
|
||||
current.setSign(MainUtil.getName(current.owner));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
if (createRoad) {
|
||||
manager.finishPlotUnlink(this.area, ids);
|
||||
|
Reference in New Issue
Block a user