Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
Revert "Remove tile entities when a block is removed."
This reverts commit 1d4347fbaf3c891580a9ee40a8e9632c992f8b08.
Dieser Commit ist enthalten in:
Ursprung
8773c3ed40
Commit
64264f61b8
@ -311,12 +311,9 @@ public class Chunk {
|
|||||||
if (l1 != 0) {
|
if (l1 != 0) {
|
||||||
if (!this.world.isStatic) {
|
if (!this.world.isStatic) {
|
||||||
Block.byId[l1].remove(this.world, i2, j, j2);
|
Block.byId[l1].remove(this.world, i2, j, j2);
|
||||||
// CraftBukkit start - delete tile entities for removed blocks
|
} else if (Block.byId[l1] instanceof BlockContainer && l1 != l) {
|
||||||
if (Block.byId[l1] instanceof BlockContainer) {
|
|
||||||
this.world.n(i2, j, j2);
|
this.world.n(i2, j, j2);
|
||||||
}
|
}
|
||||||
// CraftBukkit end
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((this.b[i << this.world.heightBitsPlusFour | k << this.world.heightBits | j] & 255) != l) return false; // CraftBukkit
|
if ((this.b[i << this.world.heightBitsPlusFour | k << this.world.heightBits | j] & 255) != l) return false; // CraftBukkit
|
||||||
@ -387,11 +384,6 @@ public class Chunk {
|
|||||||
this.b[i << this.world.heightBitsPlusFour | k << this.world.heightBits | j] = (byte) (b0 & 255);
|
this.b[i << this.world.heightBitsPlusFour | k << this.world.heightBits | j] = (byte) (b0 & 255);
|
||||||
if (k1 != 0) {
|
if (k1 != 0) {
|
||||||
Block.byId[k1].remove(this.world, l1, j, i2);
|
Block.byId[k1].remove(this.world, l1, j, i2);
|
||||||
// CraftBukkit start - delete tile entities for removed blocks
|
|
||||||
if (Block.byId[k1] instanceof BlockContainer) {
|
|
||||||
this.world.n(l1, j, i2);
|
|
||||||
}
|
|
||||||
// CraftBukkit end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((this.b[i << this.world.heightBitsPlusFour | k << this.world.heightBits | j] & 255) != l) return false; // CraftBukkit
|
if ((this.b[i << this.world.heightBitsPlusFour | k << this.world.heightBits | j] & 255) != l) return false; // CraftBukkit
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren