This commit is contained in:
Jesse Boyd
2016-06-17 15:42:23 +10:00
parent 4319300b34
commit 081081b36e
3 changed files with 14 additions and 14 deletions

View File

@ -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();

View File

@ -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);