From 38682ecff6c64ca691da58085a88933d3a7a1a0c Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Fri, 15 Apr 2022 09:01:53 +0200 Subject: [PATCH] fix: share the QueueCoordinator in PlotModificationManager#unlinkPlot (#3571) Co-authored-by: Alexander Brandes --- .../com/plotsquared/core/plot/PlotModificationManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java b/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java index 042c2e14f..68052f02c 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java @@ -333,10 +333,9 @@ public final class PlotModificationManager { ids.add(current.getId()); } this.plot.clearRatings(); - QueueCoordinator queue = null; + QueueCoordinator queue = this.plot.getArea().getQueue(); if (createSign) { this.removeSign(); - queue = this.plot.getArea().getQueue(); } PlotManager manager = this.plot.getArea().getPlotManager(); if (createRoad) {