From 92c54de5e9d1b1185db02812c0b38d612280f061 Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Thu, 27 Jan 2022 12:13:55 +0100 Subject: [PATCH] fix: run whenDone on empty queue (#3474) --- .../java/com/plotsquared/core/plot/PlotModificationManager.java | 2 ++ 1 file changed, 2 insertions(+) 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 31c6e688c..93abffdeb 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java @@ -262,7 +262,9 @@ public final class PlotModificationManager { if (queue.size() > 0) { queue.setCompleteTask(run); queue.enqueue(); + return; } + run.run(); return; } Plot current = queue.poll();