From 955341ff9f36c2808e358c3d3dc1211315d7ebe4 Mon Sep 17 00:00:00 2001 From: SirYwell Date: Fri, 4 Jun 2021 18:41:57 +0200 Subject: [PATCH] Move enqueue to the actual end of the code --- .../com/plotsquared/core/plot/PlotModificationManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 4ba41a9c1..bac093ca4 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java @@ -361,11 +361,13 @@ public final class PlotModificationManager { current.getPlotModificationManager().setSign(PlayerManager.getName(current.getOwnerAbs())); } })); - queue.enqueue(); } if (createRoad) { manager.finishPlotUnlink(ids, queue); } + if (queue != null) { + queue.enqueue(); + } return true; }