3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

Fix client chunk leak when preforming large block/chunk updates

Dieser Commit ist enthalten in:
Thinkofdeath 2015-01-30 23:33:58 +00:00
Ursprung 5c49acdcc9
Commit e87122e110

Datei anzeigen

@ -1,5 +1,5 @@
--- ../work/decompile-8eb82bde//net/minecraft/server/PlayerChunk.java 2014-11-28 17:43:43.321707430 +0000 --- ../work/decompile-8eb82bde//net/minecraft/server/PlayerChunk.java 2015-01-30 23:33:46.784237383 +0000
+++ src/main/java/net/minecraft/server/PlayerChunk.java 2014-11-28 17:38:17.000000000 +0000 +++ src/main/java/net/minecraft/server/PlayerChunk.java 2015-01-30 23:33:46.784237383 +0000
@@ -3,6 +3,11 @@ @@ -3,6 +3,11 @@
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import java.util.List; import java.util.List;
@ -93,12 +93,3 @@
this.b.remove(entityplayer); this.b.remove(entityplayer);
entityplayer.chunkCoordIntPairQueue.remove(this.location); entityplayer.chunkCoordIntPairQueue.remove(this.location);
if (this.b.isEmpty()) { if (this.b.isEmpty()) {
@@ -122,7 +169,7 @@
if (this.dirtyCount == 64) {
i = this.location.x * 16;
j = this.location.z * 16;
- this.a((Packet) (new PacketPlayOutMapChunk(PlayerChunkMap.a(this.playerChunkMap).getChunkAt(this.location.x, this.location.z), false, this.f)));
+ this.a((Packet) (new PacketPlayOutMapChunk(PlayerChunkMap.a(this.playerChunkMap).getChunkAt(this.location.x, this.location.z), (this.f == 0xFFFF), this.f))); // CraftBukkit - send everything (including biome) if all sections flagged
for (k = 0; k < 16; ++k) {
if ((this.f & 1 << k) != 0) {