mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 09:23:42 +01:00
Fix EmptyChunk's not sending to the Client correctly. Fixes BUKKIT-2206
This commit is contained in:
parent
c88531eca6
commit
35cff16da5
1 changed files with 8 additions and 0 deletions
|
@ -183,6 +183,14 @@ public class Packet51MapChunk extends Packet {
|
||||||
j += abyte2.length;
|
j += abyte2.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CraftBukkit start - Hackiest hack to have ever hacked.
|
||||||
|
// First of all, check to see if we flagged it to send, and all data is "0"
|
||||||
|
// This means that it's an "EmptyChunk," HOWEVER... It's not a physical EmptyChunk on the server, there is simply no data present
|
||||||
|
if (flag && i == 0xffff && k == 0 && chunkmap.b == 0 && chunkmap.c == 0) {
|
||||||
|
chunkmap.b = 1;
|
||||||
|
}
|
||||||
|
// CraftBukkit end
|
||||||
|
|
||||||
chunkmap.a = new byte[j];
|
chunkmap.a = new byte[j];
|
||||||
System.arraycopy(abyte, 0, chunkmap.a, 0, j);
|
System.arraycopy(abyte, 0, chunkmap.a, 0, j);
|
||||||
return chunkmap;
|
return chunkmap;
|
||||||
|
|
Loading…
Reference in a new issue