From 9e0c226632c53774ef9bc0b6750cc0261ca7872a Mon Sep 17 00:00:00 2001
From: Sauilitired <sauilitired@gmail.com>
Date: Mon, 24 Dec 2018 08:13:15 +0100
Subject: [PATCH] Fix schematic pasting

---
 .../plotsquared/plot/commands/SchematicCmd.java                 | 2 +-
 .../github/intellectualsites/plotsquared/plot/object/Plot.java  | 2 +-
 .../plotsquared/plot/util/SchematicHandler.java                 | 2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/SchematicCmd.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/SchematicCmd.java
index 6e2852ac6..2e6215220 100644
--- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/SchematicCmd.java
+++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/SchematicCmd.java
@@ -85,7 +85,7 @@ public class SchematicCmd extends SubCommand {
                             return;
                         }
                         SchematicHandler.manager
-                            .paste(schematic, plot, 0, 0, 0, true, new RunnableVal<Boolean>() {
+                            .paste(schematic, plot, 0, 1, 0, false, new RunnableVal<Boolean>() {
                                 @Override public void run(Boolean value) {
                                     SchematicCmd.this.running = false;
                                     if (value) {
diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/Plot.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/Plot.java
index 46d869575..03ea4bb9c 100644
--- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/Plot.java
+++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/Plot.java
@@ -1437,7 +1437,7 @@ public class Plot {
                 e.printStackTrace();
                 return true;
             }
-            SchematicHandler.manager.paste(sch, this, 0, 0, 0, true, new RunnableVal<Boolean>() {
+            SchematicHandler.manager.paste(sch, this, 0, 1, 0, false, new RunnableVal<Boolean>() {
                 @Override public void run(Boolean value) {
                     if (value) {
                         MainUtil.sendMessage(player, C.SCHEMATIC_PASTE_SUCCESS);
diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/util/SchematicHandler.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/util/SchematicHandler.java
index 912703e1a..592850892 100644
--- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/util/SchematicHandler.java
+++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/util/SchematicHandler.java
@@ -231,6 +231,8 @@ public abstract class SchematicHandler {
                                 }
                             }
                         }
+
+                        queue.enqueue();
 /*                            }
                         if (!chunks.isEmpty()) {
                             this.run();