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;
}
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) {

View file

@ -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);

View file

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