mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 13:36:44 +01:00
Fixed TileEntity updates occurring upon a multi-block change. Thanks stoneLeaf!
This commit is contained in:
parent
3439b7f9d9
commit
a4570215fd
1 changed files with 5 additions and 3 deletions
|
@ -172,9 +172,11 @@ class PlayerInstance {
|
||||||
this.sendAll(new Packet52MultiBlockChange(this.chunkX, this.chunkZ, this.dirtyBlocks, this.dirtyCount, this.playerManager.world));
|
this.sendAll(new Packet52MultiBlockChange(this.chunkX, this.chunkZ, this.dirtyBlocks, this.dirtyCount, this.playerManager.world));
|
||||||
|
|
||||||
for (i = 0; i < this.dirtyCount; ++i) {
|
for (i = 0; i < this.dirtyCount; ++i) {
|
||||||
j = this.chunkX * 16 + (this.dirtyCount >> 12 & 15);
|
// CraftBukkit start - Fixes TileEntity updates occurring upon a multi-block change; dirtyCount -> dirtyBlocks[i]
|
||||||
k = this.dirtyCount & 255;
|
j = this.chunkX * 16 + (this.dirtyBlocks[i] >> 12 & 15);
|
||||||
l = this.chunkZ * 16 + (this.dirtyCount >> 8 & 15);
|
k = this.dirtyBlocks[i] & 255;
|
||||||
|
l = this.chunkZ * 16 + (this.dirtyBlocks[i] >> 8 & 15);
|
||||||
|
// CraftBukkit end
|
||||||
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
if (Block.isTileEntity[this.playerManager.world.getTypeId(j, k, l)]) {
|
if (Block.isTileEntity[this.playerManager.world.getTypeId(j, k, l)]) {
|
||||||
|
|
Loading…
Reference in a new issue