mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-27 14:34:57 +01:00
Ignore empty custom payload packets. Fixes BUKKIT-2957
This commit is contained in:
parent
6466aa1d25
commit
d21c5f3871
1 changed files with 6 additions and 0 deletions
|
@ -1458,6 +1458,12 @@ public class NetServerHandler extends NetHandler {
|
||||||
ItemStack itemstack;
|
ItemStack itemstack;
|
||||||
ItemStack itemstack1;
|
ItemStack itemstack1;
|
||||||
|
|
||||||
|
// CraftBukkit start - ignore empty payloads
|
||||||
|
if (packet250custompayload.length <= 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// CraftBukkit end
|
||||||
|
|
||||||
if ("MC|BEdit".equals(packet250custompayload.tag)) {
|
if ("MC|BEdit".equals(packet250custompayload.tag)) {
|
||||||
try {
|
try {
|
||||||
datainputstream = new DataInputStream(new ByteArrayInputStream(packet250custompayload.data));
|
datainputstream = new DataInputStream(new ByteArrayInputStream(packet250custompayload.data));
|
||||||
|
|
Loading…
Add table
Reference in a new issue