Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
Fix pasting nbt
Dieser Commit ist enthalten in:
Ursprung
144215c813
Commit
16b01b9de2
@ -107,12 +107,11 @@ public class BukkitChunk_All extends IntFaweChunk<Chunk, BukkitQueue_All> {
|
|||||||
final int bz = getZ() << 4;
|
final int bz = getZ() << 4;
|
||||||
boolean update = adapter == null || adapter.isChunkInUse(chunk);
|
boolean update = adapter == null || adapter.isChunkInUse(chunk);
|
||||||
if (layer == -1) {
|
if (layer == -1) {
|
||||||
if (adapter != null)
|
if (adapter != null) {
|
||||||
{
|
|
||||||
// Run change task
|
// Run change task
|
||||||
RunnableVal2<FaweChunk, FaweChunk> task = parent.getChangeTask();
|
RunnableVal2<FaweChunk, FaweChunk> task = parent.getChangeTask();
|
||||||
BukkitChunk_All_ReadonlySnapshot previous;
|
BukkitChunk_All_ReadonlySnapshot previous;
|
||||||
if (task != null){
|
if (task != null) {
|
||||||
ChunkSnapshot snapshot = parent.ensureChunkLoaded(getX(), getZ());
|
ChunkSnapshot snapshot = parent.ensureChunkLoaded(getX(), getZ());
|
||||||
previous = new BukkitChunk_All_ReadonlySnapshot(parent, this, snapshot, biomes != null);
|
previous = new BukkitChunk_All_ReadonlySnapshot(parent, this, snapshot, biomes != null);
|
||||||
for (BlockState tile : chunk.getTileEntities()) {
|
for (BlockState tile : chunk.getTileEntities()) {
|
||||||
@ -235,7 +234,6 @@ public class BukkitChunk_All extends IntFaweChunk<Chunk, BukkitQueue_All> {
|
|||||||
|
|
||||||
BlockType type = BlockTypes.getFromStateId(combined);
|
BlockType type = BlockTypes.getFromStateId(combined);
|
||||||
if (type == BlockTypes.__RESERVED__) continue;
|
if (type == BlockTypes.__RESERVED__) continue;
|
||||||
String s = type.getResource().toUpperCase();
|
|
||||||
if (type.getMaterial().isAir()) {
|
if (type.getMaterial().isAir()) {
|
||||||
if (!place) {
|
if (!place) {
|
||||||
mutableLoc.setX(xx);
|
mutableLoc.setX(xx);
|
||||||
@ -272,7 +270,7 @@ public class BukkitChunk_All extends IntFaweChunk<Chunk, BukkitQueue_All> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (;index < 4096; index++) {
|
for (; index < 4096; index++) {
|
||||||
int j = place ? index : 4095 - index;
|
int j = place ? index : 4095 - index;
|
||||||
int combined = newArray[j];
|
int combined = newArray[j];
|
||||||
BlockType type = BlockTypes.getFromStateId(combined);
|
BlockType type = BlockTypes.getFromStateId(combined);
|
||||||
@ -311,7 +309,7 @@ public class BukkitChunk_All extends IntFaweChunk<Chunk, BukkitQueue_All> {
|
|||||||
BaseBlock state = BaseBlock.getFromInternalId(combined, tile);
|
BaseBlock state = BaseBlock.getFromInternalId(combined, tile);
|
||||||
adapter.setBlock(chunk, bx + x, y, bz + z, state, update);
|
adapter.setBlock(chunk, bx + x, y, bz + z, state, update);
|
||||||
}
|
}
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type.getMaterial().isTicksRandomly()) {
|
if (type.getMaterial().isTicksRandomly()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren