for (int var4 = 0; iterator.hasNext() && var4 < items; var4++) {
removedItems[var4] = iterator.next();
iterator.remove();
}
this.playerNetServerHandler.sendPacketToPlayer(new Packet29DestroyEntity(removedItems));
}
if (playerNetServerHandler.connectionClosed) {
worldObj.removePlayerEntityDangerously(this);
}