Fix schematic pasting

This commit is contained in:
Sauilitired 2018-12-24 08:13:15 +01:00
parent 4f43788307
commit 9e0c226632
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678
3 changed files with 4 additions and 2 deletions

View File

@ -85,7 +85,7 @@ public class SchematicCmd extends SubCommand {
return; return;
} }
SchematicHandler.manager 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) { @Override public void run(Boolean value) {
SchematicCmd.this.running = false; SchematicCmd.this.running = false;
if (value) { if (value) {

View File

@ -1437,7 +1437,7 @@ public class Plot {
e.printStackTrace(); e.printStackTrace();
return true; 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) { @Override public void run(Boolean value) {
if (value) { if (value) {
MainUtil.sendMessage(player, C.SCHEMATIC_PASTE_SUCCESS); MainUtil.sendMessage(player, C.SCHEMATIC_PASTE_SUCCESS);

View File

@ -231,6 +231,8 @@ public abstract class SchematicHandler {
} }
} }
} }
queue.enqueue();
/* } /* }
if (!chunks.isEmpty()) { if (!chunks.isEmpty()) {
this.run(); this.run();