Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Fix ghost blocks
Dieser Commit ist enthalten in:
Ursprung
8c30c72b73
Commit
629be505e2
@ -684,6 +684,12 @@ public class BukkitQueue_1_13 extends BukkitQueue_0<net.minecraft.server.v1_13_R
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (playerChunk.e()) {
|
if (playerChunk.e()) {
|
||||||
|
ChunkSection[] sections = nmsChunk.getSections();
|
||||||
|
for (int layer = 0; layer < 16; layer++) {
|
||||||
|
if (sections[layer] == null && (mask & (1 << layer)) != 0) {
|
||||||
|
sections[layer] = new ChunkSection(layer << 4, nmsWorld.worldProvider.g());
|
||||||
|
}
|
||||||
|
}
|
||||||
TaskManager.IMP.sync(new Supplier<Object>() {
|
TaskManager.IMP.sync(new Supplier<Object>() {
|
||||||
@Override
|
@Override
|
||||||
public Object get() {
|
public Object get() {
|
||||||
|
@ -15,6 +15,7 @@ import com.boydti.fawe.util.TaskManager;
|
|||||||
import com.sk89q.jnbt.CompoundTag;
|
import com.sk89q.jnbt.CompoundTag;
|
||||||
import com.sk89q.worldedit.EditSession;
|
import com.sk89q.worldedit.EditSession;
|
||||||
import com.sk89q.worldedit.world.block.BaseBlock;
|
import com.sk89q.worldedit.world.block.BaseBlock;
|
||||||
|
import com.sk89q.worldedit.world.block.BlockID;
|
||||||
import com.sk89q.worldedit.world.block.BlockState;
|
import com.sk89q.worldedit.world.block.BlockState;
|
||||||
import com.sk89q.worldedit.extent.inventory.BlockBag;
|
import com.sk89q.worldedit.extent.inventory.BlockBag;
|
||||||
import com.sk89q.worldedit.history.change.BlockChange;
|
import com.sk89q.worldedit.history.change.BlockChange;
|
||||||
@ -281,7 +282,6 @@ public abstract class FaweChangeSet implements ChangeSet {
|
|||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO
|
|
||||||
}
|
}
|
||||||
// Block changes
|
// Block changes
|
||||||
for (int layer = 0; layer < layers; layer++) {
|
for (int layer = 0; layer < layers; layer++) {
|
||||||
@ -305,7 +305,7 @@ public abstract class FaweChangeSet implements ChangeSet {
|
|||||||
case 1:
|
case 1:
|
||||||
combinedIdCurrent = 0;
|
combinedIdCurrent = 0;
|
||||||
default:
|
default:
|
||||||
int combinedIdPrevious = previousLayer != null ? previousLayer[index] : 0;
|
int combinedIdPrevious = previousLayer != null ? previousLayer[index] : BlockID.AIR;
|
||||||
if (combinedIdCurrent != combinedIdPrevious) {
|
if (combinedIdCurrent != combinedIdPrevious) {
|
||||||
add(xx, yy, zz, combinedIdPrevious, combinedIdCurrent);
|
add(xx, yy, zz, combinedIdPrevious, combinedIdCurrent);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren