mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-24 16:58:50 +01:00
Fixes #1619
This commit is contained in:
parent
af99c6a706
commit
a2324190bb
@ -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 New Issue
Block a user