mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
Fixes #1619
This commit is contained in:
parent
af99c6a706
commit
a2324190bb
1 changed files with 12 additions and 4 deletions
|
@ -328,11 +328,19 @@ public abstract class SchematicHandler {
|
||||||
if (!chunks.isEmpty()) {
|
if (!chunks.isEmpty()) {
|
||||||
this.run();
|
this.run();
|
||||||
} else {
|
} else {
|
||||||
|
queue.flush();
|
||||||
|
HashMap<BlockLoc, CompoundTag> tiles = schematic.getTiles();
|
||||||
|
if (!tiles.isEmpty()) {
|
||||||
|
TaskManager.IMP.sync(new RunnableVal<Object>() {
|
||||||
|
@Override
|
||||||
|
public void run(Object value) {
|
||||||
for (Map.Entry<BlockLoc, CompoundTag> entry : schematic.getTiles().entrySet()) {
|
for (Map.Entry<BlockLoc, CompoundTag> entry : schematic.getTiles().entrySet()) {
|
||||||
BlockLoc loc = entry.getKey();
|
BlockLoc loc = entry.getKey();
|
||||||
restoreTile(queue, entry.getValue(), p1x + xOffset + loc.x, loc.y + y_offset_actual, p1z + zOffset + loc.z);
|
restoreTile(queue, entry.getValue(), p1x + xOffset + loc.x, loc.y + y_offset_actual, p1z + zOffset + loc.z);
|
||||||
}
|
}
|
||||||
queue.flush();
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
if (whenDone != null) {
|
if (whenDone != null) {
|
||||||
whenDone.value = true;
|
whenDone.value = true;
|
||||||
whenDone.run();
|
whenDone.run();
|
||||||
|
|
Loading…
Reference in a new issue