Ignore empty custom payload packets. Fixes BUKKIT-2957

Dieser Commit ist enthalten in:
Travis Watkins 2012-11-16 16:15:41 -06:00
Ursprung 6466aa1d25
Commit d21c5f3871

Datei anzeigen

@ -1458,6 +1458,12 @@ public class NetServerHandler extends NetHandler {
ItemStack itemstack;
ItemStack itemstack1;
// CraftBukkit start - ignore empty payloads
if (packet250custompayload.length <= 0) {
return;
}
// CraftBukkit end
if ("MC|BEdit".equals(packet250custompayload.tag)) {
try {
datainputstream = new DataInputStream(new ByteArrayInputStream(packet250custompayload.data));