13
0
geforkt von Mirrors/Paper

Fix ghost blocks in ticking view distance

Fixes #4298.

Tuinity patch:
576e2cc1af/patches/server/0047-Fix-ghost-blocks-in-ticking-view-distance.patch
Dieser Commit ist enthalten in:
Spottedleaf 2020-11-01 16:28:55 +01:00
Ursprung c7e0a94a2b
Commit 94d3dceaa9

Datei anzeigen

@ -92,6 +92,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
public final boolean isAnyNeighborsLoaded() {
@@ -0,0 +0,0 @@ public class Chunk implements IChunkAccess {
IBlockData iblockdata = this.getType(blockposition);
IBlockData iblockdata1 = Block.b(iblockdata, (GeneratorAccess) this.world, blockposition);
- this.world.setTypeAndData(blockposition, iblockdata1, 20);
+ this.world.setTypeAndData(blockposition, iblockdata1, 20 | 2); // Paper - We send chunks before they're ticking ready, so we need to notify here
}
this.n[i].clear();
diff --git a/src/main/java/net/minecraft/server/ChunkMapDistance.java b/src/main/java/net/minecraft/server/ChunkMapDistance.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/net/minecraft/server/ChunkMapDistance.java