mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
Fix sync tasks not being sync
This commit is contained in:

committed by
Alexander Söderberg

parent
0a5c73478d
commit
7ac3f7ca03
@ -387,7 +387,7 @@ public class PlotSquared {
|
||||
if (!file.exists()) {
|
||||
return;
|
||||
}
|
||||
TaskManager.runTask(() -> {
|
||||
TaskManager.runTaskAsync(() -> {
|
||||
try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file))) {
|
||||
List<Object> list = (List<Object>) ois.readObject();
|
||||
ArrayList<int[]> regionInts = (ArrayList<int[]>) list.get(0);
|
||||
|
@ -47,7 +47,7 @@ public class Confirm extends SubCommand {
|
||||
player.sendMessage(TranslatableCaption.of("confirm.expired_confirm"));
|
||||
return false;
|
||||
}
|
||||
TaskManager.runTask(command.command);
|
||||
TaskManager.runTaskAsync(command.command);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -210,7 +210,7 @@ public abstract class SchematicHandler {
|
||||
}
|
||||
this.exportAll = true;
|
||||
final ArrayList<Plot> plots = new ArrayList<>(collection);
|
||||
TaskManager.runTask(new Runnable() {
|
||||
TaskManager.runTaskAsync(new Runnable() {
|
||||
@Override public void run() {
|
||||
if (plots.isEmpty()) {
|
||||
SchematicHandler.this.exportAll = false;
|
||||
@ -637,7 +637,7 @@ public abstract class SchematicHandler {
|
||||
ByteArrayOutputStream buffer = new ByteArrayOutputStream(width * height * length);
|
||||
ByteArrayOutputStream biomeBuffer = new ByteArrayOutputStream(width * length);
|
||||
// Queue
|
||||
TaskManager.runTask(() -> {
|
||||
TaskManager.runTaskAsync(() -> {
|
||||
final BlockVector3 minimum = aabb.getMinimumPoint();
|
||||
final BlockVector3 maximum = aabb.getMaximumPoint();
|
||||
|
||||
|
Reference in New Issue
Block a user